
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error Failed to create Java Virtual Machine Mac OSX
Hi there community.
I'm having trouble getting my Talend OS for Data Integration application to work on my macbook. I updated my profile file to include the JAVA_HOME and PATH variables as described in the User documentation. I then installed TOS-DI and tried to launch the Application but I get a messagebox stating: Alert - Failed to crate Java Virtual Machine.
I have a feeling my errors may be with me trying to interpret the instructions for Linux in the user documentation because there was no guidance there for Mac users. Please find below my system/version details. I hope someone can help, there seems to be very limited information provided for mac users anywhere.
Thanks in advance for you your time!
Talend Version: TOSDI-7.3.1
Mac OSX version 10.15 Catalina (I know this version is currently unsupported but I don't think it's the key issue)
Please fine here the extract from my profiles file:
# MacPorts Installer addition on 2015-01-26_at_14:19:19: adding an appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library//Python/3.7/bin:${PATH}"
export PATH
# Setting PATH for Taland access to JRE
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
And the ini file:
-vmargs
-Xms512m
-Xmx1536m
-Xdock:icon=../Resources/talend.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.instance.area.default=../../../workspace
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-XX:MaxMetaspaceSize=512m
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You shouldn't need to do anything special for Mac. I used a Mac and the only time I have to do anything like this is if I am using different versions of Java.
What happens when you type .....
java -version
...in your terminal window?
Also, what version of Talend is this? I assume it is 7

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any answer to this? Didn't have issue until I updated to Big Sur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Liam Berry , have you checked the installation guide to see if you are using compatible operating system and Java environment?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is probably it, I see Talend only supports Java 8 or 11 and mine is 14 Open JDK:
% java -version
openjdk version "14.0.1" 2020-04-14

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OpenJDK version 14 is not a supported Java version, please install version 11 and test again.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That did the trick, added OpenJDK 11 to my JavaVirtualMachine folder and it worked.Other tip to note, I had to first had to remove the quarantine on JDK using terminal command "xattr -d com.apple.quarantine /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk". A full explanation why and how can be found here: https://raquo.net/2020/03/openjdk-cannot-be-opened-because-the-developer-cannot-be-verified-adb-brew...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, thanks for your feedback and sharing.
Regards
Shong

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you having multiple Java versions installed on your system, then this can be happen. You can solve this by change the maximum memory allowed for the eclipse process (which is run in a Java Virtual Machine). Open eclipse.ini (which is in the same directory as eclipse.exe) in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Then change the default value 256m (or 1024m) to 512m . You also need to give the exact java installed version (1.6 or 1.7 or other).
Like This:
-Xmx512m
-Dosgi.requiredJavaVersion=1.6
OR
-Xmx512m
-Dosgi.requiredJavaVersion=1.7
OR
-Xmx512m
-Dosgi.requiredJavaVersion=1.8

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Community,
I'm also facing same issue of "Failed to create the Java Virtual Machine" while running TOS_BD-macosx-cocoa.app file after installation of Talend Big Data version 7 on my MacOS Big Sur Operating System.
I've checked the OS compatibility on official website they did not mentioned about Big Sur OS if it is compatible or not. Is anyone have any idea about it?
Also, I've a JDK 1.8 running on my system and that is compatible for Talend 7 version.
Kindly let me know if anyone is having idea about it.
Thanks,
Akshay

- « Previous Replies
-
- 1
- 2
- Next Replies »