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

Discussion in 'Java' started by Gianni Galore, Jan 3, 2011.

  1. 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
     
    Gianni Galore, Jan 3, 2011
    #1
    1. Advertising

  2. Gianni Galore

    code learner

    Joined:
    Dec 24, 2010
    Messages:
    19
    i would have like to set it in this way

    JAVA_HOME=C:\Program Files\Java\J2SEv1.6
    PATH=%JAVA_HOME%\bin
     
    code learner, Jan 7, 2011
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. FALCON0320

    Install j2se sdk and jre

    FALCON0320, Jul 17, 2004, in forum: Java
    Replies:
    1
    Views:
    747
    Tov Are Jacobsen
    Jul 17, 2004
  2. Martijn Mulder

    J2SE 1.4.2 or J2SE 5.0?

    Martijn Mulder, Jun 27, 2005, in forum: Java
    Replies:
    15
    Views:
    1,860
    Tor Iver Wilhelmsen
    Jun 28, 2005
  3. Replies:
    0
    Views:
    532
  4. Ulf Meinhardt
    Replies:
    0
    Views:
    6,455
    Ulf Meinhardt
    Aug 10, 2006
  5. Jochen Brenzlinger
    Replies:
    5
    Views:
    955
    Roedy Green
    Sep 2, 2011
Loading...

Share This Page