This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Alex Cholakis wrote:1) Where do I place this variable?
User variables if you want them for only you, system variables if you want them for everyone.
2) How do I add it to the "System variables" "PATH" variable?
1) double click on PATH
2) copy the value to a text editor
3) put word wrap on
4) add %JAVA_HOME%\bin to your path
4a) put %JAVA_HOME%\bin; at the start, or
4b) put ;%JAVA_HOME%\bin at the end, or
4c) put ;%JAVA_HOME%\bin just after some other path (but before its following ;)
5) copy the line back to the value field
6) press OK
Steps 2, 3 and 5 are there because it's just not useful editing such a long string in such a small field.
Here's a filtered part of my PATH:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files\Support Tools\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\GTK\2.0\bin
Note the position of both %JAVA_HOME%\bin and %ANT_HOME%\bin - just after the Windows system paths, to make sure that no other javac will be used because its path is found first.
Joined: Oct 20, 2009
Previously, I used the SE edition of Java. This is the first time using EE or Enterprise edition. So, there was alittle difference here. I've been experimenting and emailing over different list. This is my first time on this Forum and it is a super resource.
Rob, what I did was to go into my Environmental Variables and into the System variables window. I set a variable JAVA_HOME with the value "C:\Program Files\Sun\SDK\jdk" and then placed this in the Path as ;%JAVA_HOME%\bin at the end.
Your explanation was super and I learned the "%" is part the windows operating system symbols.
And David, if you hava a link about learning more about the windows symbols, it be much appreciated.
Thank you both for taking the time to respond. You made my day.