Difference between revisions of "Setting up Java"

From Exilent
Line 28: Line 28:
 
To download it search for it in google, it should be the first result:
 
To download it search for it in google, it should be the first result:
  
[https://www.google.hu/search?q=java+8+jdk https://www.google.hu/search?q=java+8+jdk]
+
[https://www.google.com/search?q=java+8+jdk https://www.google.com/search?q=java+8+jdk]
  
 
*Accept the License Agreement
 
*Accept the License Agreement

Revision as of 07:00, 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.

MfTVcxq.png

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.

giWilQt.png

1.8.x means Java 8, if you have anything else then you need to follow the next steps.

Removing other Java versions

If you are on Mac you need to remove other versions of Java before installing Java 8.

To do this, navigate to /Library/Java/JavaVirtualMachines in your file explorer and delete the folders which are not Java 8.

Install Java 8

To download it search for it in google, it should be the first result:

https://www.google.com/search?q=java+8+jdk

  • Accept the License Agreement
  • Select the version you need (Linux/Mac/Windows). You should pick the x64 (64 bit) version over the x86 (32 bit).
  • Download and install it.
  • Restart your computer if it says its required.