• Post Reply Bookmark Topic Watch Topic
  • New Topic

environmental variables  RSS feed

 
gf morris
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I set an environmental variable called JAVA_HOME to the \pathname of the directory where the Java Development Kit is installed?
lost in Illinois
gfmorris@sbcglobal.net
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Windows XP, you can go to the Control Panel to System. Go to the Advanced tab and at the bottom of the tab there should be a button labeled Environment Variables. In there you add the directory of your JSDK's bin directory to the PATH.

Also you can create an environment variable named JAVA_HOME.
[ March 07, 2006: Message edited by: Keith Lynn ]
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which OS are you using?

For Windows you would execute this from a command prompt:

set JAVA_HOME=\path\to\your\java\directory

For Linux or Unix (assuming you're using a shell like bash or ksh) it would be like this:

export JAVA_HOME=/path/to/your/java/directory
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!