Difference between revisions of "Setting up Java"

From Exilent
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
Exilent requires '''Java 11+ JRE/JDK''' installed.  
+
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.
 
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.
  
 
https://i.imgur.com/RhBjx8v.png
 
https://i.imgur.com/RhBjx8v.png
  
== Verify default Java version ==
 
 
Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default Java version.
 
Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default Java version.
  
Line 12: Line 12:
 
12.x.x means Java 12.
 
12.x.x means Java 12.
  
== Removing other Java versions ==
+
== Removing other Java versions ('''Mac''') ==
If you are '''on Mac''' you might have to remove other versions of Java.
+
If you are '''on Mac''' you have to remove other versions of Java first.
  
To do this, navigate to '''/Library/Java/JavaVirtualMachines/''' in your file explorer and delete the folders which are not Java 11+.
+
To do this, download the installer of the java that you currently have installed, run it and select uninstall.
  
== Installing latest Java ==
+
== Installing Java ==
  
 +
=== AdoptOpenJDK ===
 
Go to: https://adoptopenjdk.net
 
Go to: https://adoptopenjdk.net
 
   
 
   
Choose a Version: OpenJDK 11 or 13
+
Choose a Version: OpenJDK 11 (LTS) or OpenJDK 16 (Latest)
  
 
Choose a JVM: Hotspot
 
Choose a JVM: Hotspot
  
Select a platform: your OS
+
Select your platform.
 +
 
 +
Download and install.
 +
 
 +
=== Oracle JDK===
 +
 
 +
Go to: https://www.oracle.com/java/technologies/downloads/
  
Install JDK or JRE.
+
Select your platform.
  
https://i.imgur.com/TKZTyeG.png
+
Download and Install.
  
 
{{See also|Getting started}}
 
{{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