aspose file tools*
The moose likes Beginning Java and the fly likes Java Enviroment Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Enviroment Variables" Watch "Java Enviroment Variables" New topic
Author

Java Enviroment Variables

Nelly Verccety
Greenhorn

Joined: Feb 16, 2006
Posts: 8
I am using Windows XP.

From DOS, how do I compile (javac) from any directory? I know there is a way, I just can't remember.

I have my java enviroment variable like this:

JAVA_HOME
C:\j2sdk1.4.2_10\bin

Thanks in advance...
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
you got to set your path variable.

From dosprompt

c:>set path=%path%;C:\j2sdk1.4.2_10\bin

JAVA_HOME variable should point to the root of JDK.

JAVA_HOME=C:\j2sdk1.4.2_10;


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
U can set the Path variable in Enviornment Variable also.That way u dont have to set path variable each time in command promt.

One Disadvantage is if u use multiple installation of JDK, u wont be able to configure it dynamically.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Enviroment Variables