Setting the JAVA_HOME in Windows 7 (64 bit)

After you have downloaded and installed the Java Development Kit (JDK) in Windows, you must set the JAVA_HOME environment variable to point to the JDK installation directory.

You must follow these steps to set JAVA_HOME variable on your Windows system.

Right-click the My Computer icon on your desktop and select Properties.
Click Advanced system settings link.
Click the Advanced tab.
Click the Environment Variables button.
Under System Variables, click New.
Enter the variable name as JAVA_HOME
Enter the variable value as the installation path for the Java Development Kit as something like this C:\Program Files\Java\jdk1.6.0_45

set java home 1
Click OK.

set java home 2
Click OK.

Under System Variables, select Path system variable
Click Edit.
Scroll to the beginning of the Variable value and insert %JAVA_HOME%\bin;

set  path 1
Click OK.

set path 2
Click OK.

Click Apply.

If the changes do not take effect restart Windows.


About kaanmutlu

Software Developer - Computer Engineer from Istanbul, Turkey
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

12 Responses to Setting the JAVA_HOME in Windows 7 (64 bit)

  1. empol says:

    thank you very much, it helped me a lot

  2. User says:

    Good Blog helped a lot.

  3. sudhir says:

    how to set for client location in java 64 bit bcz there is no client folder in java6 64 bit, as have in 32 bit

  4. Sahithiraj says:

    Thanks alot…it did work successfully ­čÖé

  5. DaDheeChi says:

    Thank you very much

  6. Yine ├žok iyi bir payla┼č─▒m olmu┼č te┼čekk├╝rler

  7. Ragini says:

    Thank you…this helped me.

  8. Great article. It’s amazing, but even though this was published in 2013, it all still pretty much holds true for Windows 10.

    For anyone looking at fixing errors that might happen during this process, I put together a little article on the topic. It just might help if you’re having problems:

Leave a Reply

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

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

Google photo

You are commenting using your Google 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