How to officially set environment variables JAVA_HOME and PATH for J2SE vs JRE ?

G

Gianni Galore

Assume I have installed J2SE and a separate JRE.

How do I have to set officially the environment variables JAVA_HOME and which folder should
be put in PATH ?

Should I enter

JAVA_HOME=C:\Program Files\Java\J2SEv1.6
or
JAVA_HOME=C:\Program Files\Java\jre6


What about the PATH:

PATH=C:\Program Files\Java\J2SEv1.6\bin;......

or

PATH=C:\Program Files\Java\jre6\bin;.....

or

PATH=C:\Program Files\Java\J2SEv1.6\jre\bin;.....

Gianni
 
Joined
Dec 24, 2010
Messages
19
Reaction score
0
i would have like to set it in this way

JAVA_HOME=C:\Program Files\Java\J2SEv1.6
PATH=%JAVA_HOME%\bin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top