Environment Variables dialog.
In the System variables below, new a varible named
JAVA_HOME and the value is the path where JDK was installed.
Path variable, insert the text below into the foremost:
Finally, new a variable named
CLASSPATH,the value is as follow:
Go check if you are doing it right:
java -versionto see if there are something output.
Addictionally, you can set the encoding of JAVA:
- add a new value named JAVA_TOOL_OPTIONS
- set its value as -Dfile.encoding=UTF-8 (or others you need)
Subscribe to JuniperPhoton's Blog
Get the latest posts delivered right to your inbox