ArtiSynth Installation Guide for Windows

4 Installing Java

ArtiSynth requires that you have a full Java development kit (JDK) installed, which comes with a Java compiler; a simple run time environment (JRE) will not be sufficient. By default, ArtiSynth is compiled to be compliant with Java 8. While ArtiSynth will generally work under later Java versions, there have been occasional reports of compatibility issues involving the Java OpenGL (JOGL) interface. Therefore we currently recommend using Java 8; this also provides maximum compatibility with MATLAB, as indicated above. We specifically recommend the Java SE Development Kit 8uXXX (where XXX is the latest revision number), which can be obtained from Oracle (registration required). At the time of this writing, the download page is located at

and the latest release is 8u281. This page provides downloads for all systems; be sure to choose the download link appropriate to yours. For Windows, this will be jdk-8u281-windows-x64.exe. After the file downloads, open it, and follow the installation wizard, using the default values provided. The installer will probably install both a JRE and a JDK, and place them in the folders

C:\Program Files\Java\jre1.8.0_281
C:\Program Files\Java\jdk1.8.0_281

The second contains the JDK, and is your JDK installation folder.

If the above Oracle link is no longer current, the search terms ``java 8 jdk download'' should get you to the right place.

4.1 Ensuring the JDK is visible to your system

After the JDK has been installed, it is important to ensure that it is visible to your system and that it supersedes any other Java installations. One test for this is to open a CMD window and run the command

 > javac -version

The output should match the version of the installed JDK. If it does not, or if the command javac is not found, then one fix is to add the folder <JDK_HOME>\bin to your system Path, as described in Section 13.1, where <JDK_HOME> is the JDK installation directory. On Windows, your JDK is likely to be installed under Program Files\Java. For example, if your JDK is 1.8.0_281, then <JDK_HOME> will likely be

  C:\Program Files\Java\jdk1.8.0_281

In particular, <JDK_HOME>\bin should be added ahead of any other Java installations that might be specified on the Path. To see the current contents of the Path, open a CMD window and run the command

 > echo %PATH%