Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

set JAVA_HOME environment variable

how somebody explain to me how can i do the above please?
0
ellandrd
Asked:
ellandrd
  • 6
  • 5
  • 3
6 Solutions
 
CEHJCommented:
Do this through the System Control Panel 'applet'


Start|Settings|Control Panel

System 'applet'

Choose advanced tab

Click on Environment Variables

Add new USer variable
0
 
ellandrdAuthor Commented:
how they in a previous question have you suggested to use:

%JAVA_HOME%\bin

how will my machine how what %JAVA_HOME% is?

at the mo i have: ;C:\Program Files\Java\jdk1.5.0_06\bin in my PATH
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
CEHJCommented:
>>
how they in a previous question have you suggested to use:

%JAVA_HOME%\bin
>>

Because JAVA_HOME is important in itself and if you're using it, you can use it in PATH

>>how will my machine how what %JAVA_HOME% is?

From the fact that you've set it
0
 
ellandrdAuthor Commented:
OK guys what i have is:

;%JAVA_HOME%\bin;%JAVA_DIR%\Ant\bin;

i have set JAVA_HOME to C:\Program Files\Java\jdk1.5.0_06\
i have set JAVA_DIR to C:\Program Files\Java\

this is OK?
0
 
objectsCommented:
> how will my machine how what %JAVA_HOME% is?

%JAVA_HOME% means the value of the JAVA_HOME variable
But as I mentioned in the other question, theres no real need to add it to your path
0
 
objectsCommented:
> this is OK?

also set ANT_HOME
and $ANT_HOME%\bin would be better than %JAVA_DIR%\Ant\bin
0
 
ellandrdAuthor Commented:
Mmmm yes good point - i wasnt thinking.. ANT_HOME seems proper...
0
 
CEHJCommented:
>>this is OK?

JAVA_HOME should be

C:\Program Files\Java\jdk1.5.0_06

and

JAVA_DIR is not required. I hope the Ant install directory is not under C:\Program Files\Java

Your PATH should have

;%JAVA_HOME%\bin;%ANT_HOME%\bin;

appended to it
0
 
ellandrdAuthor Commented:
>>JAVA_HOME should be

>>C:\Program Files\Java\jdk1.5.0_06

is that not what i had?
0
 
CEHJCommented:
>>is that not what i had?

No - you had a backslash on the end. That could create problems
0
 
ellandrdAuthor Commented:
Ah! OK.. thank you
0
 
ellandrdAuthor Commented:
thanks you both of you...
0
 
CEHJCommented:
:-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 6
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now