-
Notifications
You must be signed in to change notification settings - Fork 25
/
install-java.html
31 lines (25 loc) · 1.23 KB
/
install-java.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<h2>Install Java</h2>
<p>
Download an appropriate JDK for your operating system. The latest JDK can be downloaded from the official
<a id="jdk-download-link" target="_blank" href="https://jdk.java.net/23/">OpenJDK</a> website.
</p>
<p>
Once installed, you can use the
<kbd>java</kbd> command from your command line.
</p>
<p>Check if the correct java version is installed. The following shows the output for OpenJDK <span class="JDK_MAJOR">21</span>:</p>
<pre><code>
$ java -version
openjdk version "23.0.1" 2024-10-15
OpenJDK Runtime Environment (build 23.0.1+11-39)
OpenJDK 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)
</code></pre>
<p>
You need to set the <b>JAVA_HOME</b> environment variable to the JDK installation directory. You can follow
<a href="http://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux" target="_blank">this guide</a> to set JAVA_HOME for your platform.
</p>
<div class="alert alert-warning">
<strong>Note: </strong>
If your system has multiple versions of JDK installed, you need to make sure that the <kbd>JAVA_HOME</kbd>
environment variable points to correct JDK. JavaFX <span class="JFX_MAJOR">11</span> needs at least JDK <span class="MIN_JDK">17</span>.
</div>