You can define a shortcut which sets this automatically for you. Linux users can also set a symbolic link ar an alias command.

Configuring the JVM path in stambia.ini

The JVM path can also be specified in the stambia.ini configuration file, which is located in the Designer's directory.

We suggest to make first a backup of the file, as it is very sensible and easily "breakable" (because of extra spaces or line breaks).

If you forgot backuping, you can still find the original file in the zip of the designer.

The argument to add is

-vmC:\Program Files\Java\jdk1.8.0_20\bin\

Important

It must be added at the beginning of the file, overwise it will not work

The line break after -vm is necessary too, without any space character

Installing a JRE folder in the Designer's folder

Another way to change the JVM of the Designer is to add a "jre" directory at the root of the Designer installation.

And then copy in this directory the content of the JRE/JDK folder.

Exemple of what we have in the <stambiaDirectory>/jre:

Configuring a JVM path with environnement variables

By default, the designer uses the JVM of the system (often defined in environment variables).

You can modify these variables to change the JVM used by the Designer.

Below are some examples on how to do that but it depends on your OS and your requirement (Changing the JVM used by all the OS ? By the user only ?). You can find more detail on the internet about the steps and explanations to do that.

On Windows

To change the JVM used by the system, you can use the PATH system variable.

Like in the screenshot, add to your variable <path to JDK bin>;

On Linux

It depends on your distribution. Here is how we did it on ubuntu.

We have updated the PATH environnement variable to add the JVM we want. For that, we modified the .bashrc file of the user.

1) Make a backup of the ~/.bashrc file (with cp .bashrc .bashrc.old for example).

2) Open this file in your prefered editor, and add at the end of the file :