Child pages
  • Setting the JAVA_HOME Environment Variable
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Setting the JAVA_HOME environment variable differs on different platforms.

Windows
  • Open System Properties (right-click "My computer" and select "Properties")
  • Open "Advanced" tab
  • Click "Environment Variables"
  • Locate the "JAVA_HOME" system variable en click "Edit"
  • Set the value of the variable to the path of the Java installation, for example: "C:\Progra~1\Java\jre1.6.0_17"
Macintosh
Set JAVA_HOME variable for OSX
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home
Unix

Depending on your login shell.

Set JAVA_HOME variable for Unix
export JAVA_HOME=/usr/bin/
  • No labels