Click here to Skip to main content
13,863,289 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a doubt regarding setting JAVA_HOME variable. Whether JAVA_HOME should point to jdk directory or hre directory??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You do not need JAVA_HOME, just make sure that your PATH variable includes the jdk\bin directory.
TorstenH. 26-Apr-12 11:07am
fubar! organize the Path variables.

Well explained here
Richard MacCutchan 26-Apr-12 11:22am
It works for me.
Richard MacCutchan 26-Apr-12 11:24am
And I note that your link is specific to Bash (UNIX/Linux), whereas the question is asking about Windows 7.
TorstenH. 26-Apr-12 12:22pm
the link covers all OS.
Richard MacCutchan 26-Apr-12 12:56pm
Oops! My bad.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

After downloading and launching the installer work your way through to the Custom Setup page. You'll notice that the default path installs the JDK to the Program Files folder. Due to the issue with scons we are going to install Java in a path with no spaces. To do so we need take Program Files out of the path to the JDK. To do that, click on the Change... button
Edit the path to so that Program Files is gone.
Navigate to the System Properties Dialog, Advanced Settings tab, then click the **Environment Variables...* button.
Add a new System Variable for JAVA_HOME, buy clicking on New... in the System Variable section.
Select the Path system variable and click Edit..
Scroll to the beginning of the path and insert %JAVA_HOME%bin;
Richard MacCutchan 13-Oct-12 11:51am
Do you really think the OP is still waiting after 6 months?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

See this good article on “JAVA_HOME” Setup here –
Richard MacCutchan 12-Aug-15 2:55am
This post is nearly 3 years old. Please do not waste time adding to dead questions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190214.1 | Last Updated 12 Aug 2015
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100