Friday

Set environment variables for Java using command line

Using command line prompt (Windows 7 & 8):
1. you can set your JAVA_HOME as shown:
setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0"

2. you can see your JAVA_HOME path as shown:
echo %JAVA_HOME%
(if path isn't set %JAVA_HOME% will be printed else the path will be printed eg. C:\Program Files\Java\jdk1.7.0_21)

No comments:

Post a Comment