forked from openjfx/openjfx-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-java.html
31 lines (25 loc) · 1.11 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 <span class="JDK_MAJOR">11</span></h2>
<p>
Download an appropriate JDK for your operating system. We will be using
<a target="_blank" href="http://jdk.java.net/11/">OpenJDK</a> for this tutorial.
</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:</p>
<pre><code>
$ java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
</code></pre>
<p>
You need to set the <b>JAVA_HOME</b> environment variable to a JDK <span class="JDK_MAJOR">11</span> installation directory. You can follow
<a href="http://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux">this guide</a> to set JAVA_HOME for your platform.
</p>
<div class="alert alert-warning">
<strong>Note: </strong>
If you have newer or older versions of Java installed along with JDK <span class="JDK_MAJOR">11</span>, you need to make sure that the JAVA_HOME
environment variable points to JDK <span class="JDK_MAJOR">11</span>.
</div>