This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Enviroment Variables  RSS feed

 
Nelly Verccety
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!