Difference between revisions of "Setting up Java"

From Exilent
 
(91 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Install Java ==
+
Exilent requires '''Java 11+ JRE/JDK''' installed. On '''Mac''' it best works with Oracle JDK.
Exilent currently works only with '''Java 8'''.  
 
  
[http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html]
+
== Verify default Java version ==
 +
There can be several Java versions installed on your computer. When you double click a JAR file it will be executed on the Java version which is set as default.
  
== Default Java version ==
+
https://i.imgur.com/RhBjx8v.png
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.
 
  
In order to run Exilent you have to make sure you have '''Java 8 set as default'''.
+
Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default Java version.
  
== Verify your default Java version ==
+
https://i.imgur.com/LnxBqAX.png
  
You have to make sure your default Java is version 8.
+
12.x.x means Java 12.
  
[https://www.java.com/en/download/help/version_manual.xml https://www.java.com/en/download/help/version_manual.xml]
+
== Removing other Java versions ('''Mac''') ==
 +
If you are '''on Mac''' you have to remove other versions of Java first.
  
=== Windows ===
+
To do this, download the installer of the java that you currently have installed, run it and select uninstall.
Open up a terminal.  
 
* Start - Command Prompt
 
  
Type: '''java -version'''
+
== Installing Java ==
  
The default Java version will be printed out (Java 8 181).
+
=== AdoptOpenJDK ===
 +
Go to: https://adoptopenjdk.net
 +
 +
Choose a Version: OpenJDK 11 (LTS) or OpenJDK 16 (Latest)
  
https://i.imgur.com/giWilQt.png
+
Choose a JVM: Hotspot
  
=== Mac ===
+
Select your platform.
  
== Set default Java version ==
+
Download and install.
On Windows installing any Java (JRE of JDK) should be set as default.
 
  
On Mac installing a JRE wont be set as default so you will have to install JDK.
+
=== Oracle JDK===
 +
 
 +
Go to: https://www.oracle.com/java/technologies/downloads/
 +
 
 +
Select your platform.
 +
 
 +
Download and Install.
 +
 
 +
{{See also|Getting started}}

Latest revision as of 22:33, 19 October 2022

Exilent requires Java 11+ JRE/JDK installed. On Mac it best works with Oracle JDK.

Verify default Java version

There can be several Java versions installed on your computer. When you double click a JAR file it will be executed on the Java version which is set as default.

RhBjx8v.png

Open up a Command Prompt/Terminal and type java -version. This will print out the current default Java version.

LnxBqAX.png

12.x.x means Java 12.

Removing other Java versions (Mac)

If you are on Mac you have to remove other versions of Java first.

To do this, download the installer of the java that you currently have installed, run it and select uninstall.

Installing Java

AdoptOpenJDK

Go to: https://adoptopenjdk.net

Choose a Version: OpenJDK 11 (LTS) or OpenJDK 16 (Latest)

Choose a JVM: Hotspot

Select your platform.

Download and install.

Oracle JDK

Go to: https://www.oracle.com/java/technologies/downloads/

Select your platform.

Download and Install.

See also: Getting started