Z
zxg_32
Hi, there.
Many sources talk about setting/updating PATH, JAVA_HOME, CLASSPATH
environmental variables after JDK installation. PATH is easy to
understand. CLASSPATH is actually not recommended by SUN:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
My question is about JAVA_HOME, what is it used for? Is PATH (maybe
plus CLASSPATH) enough? I tried compiling and running a java program
without setting JAVA_HOME and CLASSPATH (PATH is set), and it works
fine. Is JAVA_HOME just redundant?
Thanks.
P.S. I know Tomcat needs JAVA_HOME to work properly, what else?
Many sources talk about setting/updating PATH, JAVA_HOME, CLASSPATH
environmental variables after JDK installation. PATH is easy to
understand. CLASSPATH is actually not recommended by SUN:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
My question is about JAVA_HOME, what is it used for? Is PATH (maybe
plus CLASSPATH) enough? I tried compiling and running a java program
without setting JAVA_HOME and CLASSPATH (PATH is set), and it works
fine. Is JAVA_HOME just redundant?
Thanks.
P.S. I know Tomcat needs JAVA_HOME to work properly, what else?