Difference between revisions of "Java on Windows"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "This article concerns Java (programming language on Microsoft Windows. ==") |
Karl Jones (Talk | contribs) (→See also) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | This article concerns [[Java (programming language]] on [[Microsoft Windows]]. | + | This article concerns [[Java (programming language)]] on [[Microsoft Windows]]. |
| − | == | + | == Java SE Development Kit 8u25 on a 64-bit Windows 8 == |
| + | |||
| + | Set the following user environment variables (environment variables of type user variables): | ||
| + | |||
| + | <pre> | ||
| + | JAVA_HOME : C:\Program Files\Java\jdk1.8.0_25 | ||
| + | JDK_HOME : %JAVA_HOME% | ||
| + | JRE_HOME : %JAVA_HOME%\jre | ||
| + | CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib | ||
| + | PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder. | ||
| + | </pre> | ||
| + | |||
| + | Notice that all these environment variables are derived from the "root" environment variable JAVA_HOME. This makes it easy to update your environment variables when updating the JDK. Just point JAVA_HOME to the fresh installation. | ||
| + | |||
| + | Source: | ||
| + | |||
| + | http://stackoverflow.com/questions/1672281/environment-variables-for-java-installation | ||
| + | |||
| + | == See also == | ||
| + | |||
| + | * [[Java (programming language)]] | ||
| + | |||
| + | [[Category:Computer programming]] | ||
| + | [[Category:Microsoft Windows]] | ||
Latest revision as of 13:49, 11 September 2016
This article concerns Java (programming language) on Microsoft Windows.
Java SE Development Kit 8u25 on a 64-bit Windows 8
Set the following user environment variables (environment variables of type user variables):
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_25 JDK_HOME : %JAVA_HOME% JRE_HOME : %JAVA_HOME%\jre CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.
Notice that all these environment variables are derived from the "root" environment variable JAVA_HOME. This makes it easy to update your environment variables when updating the JDK. Just point JAVA_HOME to the fresh installation.
Source:
http://stackoverflow.com/questions/1672281/environment-variables-for-java-installation