Difference between revisions of "Setting up Java"
From Exilent
Line 12: | Line 12: | ||
* Error: A fatal exception has occurred. Program will exit. | * Error: A fatal exception has occurred. Program will exit. | ||
− | == Verify default | + | == Verify default Java version == |
− | Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default | + | Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default Java version. |
https://i.imgur.com/giWilQt.png | https://i.imgur.com/giWilQt.png |
Revision as of 06:56, 4 April 2019
Exilent currently works only with Java 8 (JRE/JDK).
There can be several Java versions installed on a computer at the same time. When you double click a JAR file it will be executed on the Java version which is set as default.
If you get errors about unrecognized option and not being able to create Java Virtual Machine then its possible that you have Java 9+ installed and set as default.
* Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. * Unrecognized option: -Xincgc * Error: Could not create the Java Virtual Machine. * Error: A fatal exception has occurred. Program will exit.
Verify default Java version
Open up a Command Prompt/Terminal and type java -version. This will print out the current default Java version.
1.8.x means Java 8, if you have anything else then you need to follow the next steps.