Fix “Failed To Create JVM ” error while installing TeradataStudio on MacOS Spur.

Anupindi RaviShankar
3 min readFeb 12, 2022

In this article I would like to share how I solved the most annoying and common error “Failed to create the JVM” while launching TeradataStudio on MacOS Spur. I am using TeradataStudio version 17.10.

Error message shown while launching TD Studio on MacOS

Above error gives the hint that TeradataStudio was not able to find the location of JRE on my MacOS and hence the error. Following are the steps which I took to solve the above issue and successfully launch TeradataStudio.

  1. Ensure TeradataStudio compatible JDK version installed
  2. Pointing TeradataStudio to pick up correct JRE location

Ensure JDK version needed for TeradataStudio

Open the Terminal window and enter the below command to list all versions of java installed on your machine

/usr/libexec/java_home -v

You will see the output like below screen shot. If you notice I had 2 JVM setups installed on my machine. First one is the default one and second one is the JDK 1.8 which I installed.

Finding out JVMs installed on your MacOS

If JAVA_HOME is already set in your ~/.zshrc or ~/.zshenv then it will get reflected when you use the command $JAVA_HOME. You can check if JAVA_HOME is set or not by typing the below command on terminal window.

 printenv

Since TeradataStudio v 17.10 also supports JDK 1.8, I decided to go with the same version instead of upgrading to the higher versions of JDK.

Update JDK / JRE location for TeradataStudio

As per Teradata documentation we need to update TeradataStudio.ini file with the correct JDK version. Though it was simple step process but I was not able to do it as the same file was locked and there was not a simple solution to change the permissions to remove the lock and edit the file. After few hours of googling I came across the following method to change the permissions on .ini file.

  1. Go to the location where TeradataStudio is installed and right click and select “Show Package Content” and click on “Eclipse” folder and you will find TeradataStudio.ini file as shown below
TeradataStudio.ini file location

2. Next major step would be to change the permission of .ini file along with its parent folders. To do that right click on .ini file and select “ Get Info” option. You will notice a popup window which shows all the information about the file along with the security settings at the bottom. That is the place where we need to add permission for ourselves to “Read And Write”. To change the permissions for yourself please follow the below steps.

a. First click on the “lock” icon at the bottom right corner. It will get unlocked

b. Now add your userid by clicking on “+” icon and give yourself both “Read and Write” permissions as shown below

Screen shot showing where to add the permissions

3. Similar step you need to do for Eclipse folder till the Root.

4. Once you are done with the above changes, you open TeradataStudio.ini file in terminal and change below settings. Don’t forget to remove the commented strings “←” and “ →”

<array>
<string>-vm</string> <string>/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home </string>
</array>

4. Now you go and open TeradataStudio and you will see the below screen

Thats it. Now you will be able to work on TeradataStudio on MacOS.

If you find this article useful, please do let me know. Happy learning :)

--

--