Install:Parallel Java

Jump to navigation Jump to search

LateralGM itself can be used with either a 32 or 64 bit Java. However, LateralGM's plugin, that enables you to actually compile games, communicates with ENIGMA using JNA to load the file compileEGMf. The use of JNA to call the compile methods and request syntax checking from ENIGMA requires a compileEGMf that is compiled with the same architecture as the Java Virtual Machine that JNA is executing from. So, if you are running LateralGM, and the ENIGMA plugin with JNA, from a 32 bit Java, then there must be a 32 bit compileEGMf present as well.

The compileEGMf file may have a different file extension depending on the platform:

Platform Filename
Windows compileEGMf.dll
Mac compileEGMf.dylib

If you are not sure what version of Java you have installed, there are a number of ways you can find out. It is possible to run the command java -version which should produce something like the following:

C:\Windows\System32>java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

In this example, we can see that there is a 64 bit version of Java installed. If you already have multiple Java's installed then this output will likely be your system's "default" version of Java. It will not show you every version of Java installed. On Windows it may useful to look in "Programs and Features" to determine all versions of Java that are installed.

If you would like to keep your 64bit Java and also use the 32bit version for ENIGMA, it is as simple as installing a 32bit Java. This same solution can be applied for installing parallel 32bit Java installations with versions we do not support, for instance if you have Java 6 32bit (which LateralGM no longer supports) you can follow these instructions to keep your Java 6 installation and run ENIGMA with a compatible Java installation.

After a 32bit Java is installed, if no other Java installation exists then you can simply run ENIGMA. If you decided to keep an alternative Java installation that is 64bit then you may need to explicitly state the 32bit version when launching ENIGMA. This can be easily done on Windows by changing the settings.ini value for the key IDECOMMAND to something like the following:

idecommand="C:\Program Files (x86)\Java\jre1.8.0_25\bin\java.exe -jar"

Remember that on 64bit Windows installations Program Files is for 64bit applications and 32bit applications are installed in Program Files (x86), so the above modification of the original value indicates the path to a specific Java installation to run with, in this case the 32bit JVM. On Linux or Mac you will need to explicitly state the path to the 32bit JVM when running the launch command or you could create a launcher script to avoid having to type it every time you run ENIGMA.

After you make the above changes you should be good to go and use ENIGMA with at least a compatible 32bit and an optional 64bit or incompatible Java installation.

If you have "Error: could not find java.dll" then check the troubleshooting page.