Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
quinceworks
Contributor
Contributor

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

 

Labels (2)
16 Replies
Anonymous
Not applicable

@Akshay Jadhav​ , it was a known issue, the resolution was to specified -vm to point to java executable path in Talend-Studio-macosx-cocoa.ini like:

-vm

/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/java

or

Add Java path to Info.plist inside Talend-Studio-macosx-cocoa/Contents like:

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/java</string>

 

Regards

Shong

Akshay3
Contributor
Contributor

Hi Shong,

Thanks for the reply.

I've changed the -vm path as per my JAVA path in the TOS_BD-macosx-cocoa.ini but it's not working.

I went to try second approach but the Contents is not present in my TOS_BD-macosx-cocoa files package. I'm using TOS_BD-macosx-cocoa version 7. 😞

Best,

Akshay

Anonymous
Not applicable

@Akshay Jadhav​, this is the jira issue, the workaround is provided by R&D team and it is for v7.3.1, What is the specific version of your product?

 

Akshay3
Contributor
Contributor

Yes, I'm using Talend Big Data v7.3.1 and I've set the path -vm path at the beginning of the file TOS_BD-macosx-cocoa.ini file as,

-vm /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin/java

But still is showing the same error.

Please help me in resolving this.

Anonymous
Not applicable

I am not using MacOS Big Sur Operating System, let me check with our developers and I will come to you once I have any information.

 

Regards

Shong

Anonymous
Not applicable

Hello

I got response from our developer,

 

Adding “-vm” in TOS_BD-macosx-cocoa.ini should work. Please check if the java path is correct by running

 the below command in terminal :

/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin/java -version

 

For the second way, select “Show Package Contents”

0695b00000DtIRlAAN.png 

Hope it is helpful.

 

 

Regards

Shong

SS1687877375
Contributor
Contributor

Shong I am also having this issue. I have verified the -vm entry in the .ini file aligns with the installed version of Java 1.8.0_161 but still getting the same error message.

 

I am running talend 7.3.1 ESB.

my ini file reads as follows:

-vm/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java

-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