Setting Java Environment In Windows

  1. Append the Java JDK bin directory to the environment variable “path”
    C:\> echo %PATH%
    C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\GTK2-Runtime\bin;C:\Program Files\WinSCP\;C:\Program Files\Vim\vim73

     

  2. Set the JAVA_HOME environment path

    C:\> echo %JAVA_HOME%
    C:\Program Files\Java\jdk1.6.0_18

     

  3. Set the CLASSPATH to point to the %JAVA_HOME%\lib\tools.jar.
    C:\> echo %CLASSPATH%
    C:\C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.