Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java
I have a doubt regarding setting JAVA_HOME variable. Whether JAVA_HOME should point to jdk directory or hre directory??
Posted 26-Apr-12 5:13am
Rate this: bad
good
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.
  Permalink  
Comments
TorstenH. at 26-Apr-12 11:07am
   
fubar! organize the Path variables.
 
Well explained here
Richard MacCutchan at 26-Apr-12 11:22am
   
It works for me.
Richard MacCutchan at 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. at 26-Apr-12 12:22pm
   
the link covers all OS.
Richard MacCutchan at 26-Apr-12 12:56pm
   
Oops! My bad.
Rate this: bad
good
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;
  Permalink  
Comments
Richard MacCutchan at 13-Oct-12 11:51am
   
Do you really think the OP is still waiting after 6 months?

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

  Print Answers RSS
0 OriginalGriff 195
1 Afzaal Ahmad Zeeshan 132
2 ProgramFOX 130
3 Maciej Los 105
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,657
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 13 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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