Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a doubt regarding setting JAVA_HOME variable. Whether JAVA_HOME should point to jdk directory or hre directory??
Posted

You do not need JAVA_HOME, just make sure that your PATH variable includes the jdk\bin directory.
 
Share this answer
 
Comments
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.
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;
 
Share this answer
 
Comments
Richard MacCutchan 13-Oct-12 11:51am    
Do you really think the OP is still waiting after 6 months?
See this good article on “JAVA_HOME” Setup here – http://goo.gl/pY4WE1
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900