Difference between revisions of "Setting up Java"

From Exilent
 
(76 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 (JRE/JDK)'''.  
 
  
To download it search for it in google, it should be the first result:
+
== 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.
  
[https://www.google.hu/search?q=java+8+jdk https://www.google.hu/search?q=java+8+jdk]
+
https://i.imgur.com/RhBjx8v.png
  
Make sure to accept the License Agreement.
+
Open up a Command Prompt/Terminal and type '''java -version'''. This will print out the current default Java version.
  
https://i.imgur.com/Q4rcBvf.png
+
https://i.imgur.com/LnxBqAX.png
  
Download the required version and install it. Restart your computer if its required.
+
12.x.x means Java 12.
  
== Default Java version ==
+
== Removing other Java versions ('''Mac''') ==
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 are '''on Mac''' you have to remove other versions of Java first.
  
In order to run Exilent you have to make sure you have '''Java 8 set as default'''.
+
To do this, download the installer of the java that you currently have installed, run it and select uninstall.
  
== Set default Java version ==
+
== Installing Java ==
=== Windows ===
 
Installing any Java 8 (JRE of JDK) should be set as default.
 
  
=== Mac ===
+
=== AdoptOpenJDK ===
Installing a Java 8 JRE wont be set as default so you will have to install Java 8 JDK.
+
Go to: https://adoptopenjdk.net
 +
 +
Choose a Version: OpenJDK 11 (LTS) or OpenJDK 16 (Latest)
  
== Verify your default Java version ==
+
Choose a JVM: Hotspot
Ther are are several ways to do it.
 
  
[https://www.java.com/en/download/help/version_manual.xml https://www.java.com/en/download/help/version_manual.xml]
+
Select your platform.
  
=== Windows ===
+
Download and install.
Open up a Command Prompt.  
 
* Start - Command Prompt
 
  
Type: '''java -version'''
+
=== Oracle JDK===
  
The default Java version will be printed out. 1.8.0_xxx is Java 8.
+
Go to: https://www.oracle.com/java/technologies/downloads/
  
https://i.imgur.com/giWilQt.png
+
Select your platform.
  
=== Mac ===
+
Download and Install.
Open up a Terminal.
 
* use the search icon in the top right corner
 
* type Terminal and open it
 
  
Type: '''java -version'''
+
{{See also|Getting started}}
 
 
The default Java version will be printed out. 1.8.0_xxx is Java 8.
 
 
 
{{See also|Downloads}}
 

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