Installing Java 6 and Java 7 at the same time, and how to use 6 for.........?

Discussion in 'Webmastering & Programming' started by NanoEntity, Aug 4, 2012.

  1. NanoEntity

    NanoEntity [H]Lite

    Messages:
    124
    Joined:
    Jun 24, 2001
    Installing Java 6 and Java 7 at the same time, and how to use 6 for one Java application and 7 for everything else.

    Dose anyone has any clue? Can it be done with a simple .bat file or something?

    I want to start 1 java app in 6.
    Everything else I want to use 7 Environment Variables (SYSTEM PATH).
     
  2. SirMaster

    SirMaster 2[H]4U

    Messages:
    2,122
    Joined:
    Nov 8, 2010
    You normally set in the application code which JRE to run against.
     
  3. BreezeDM

    BreezeDM Gawd

    Messages:
    608
    Joined:
    Jun 25, 2008
    in a command prompt or batch file
    set JAVA_HOME=<path to java version bin>
    <command to execute>
     
  4. NanoEntity

    NanoEntity [H]Lite

    Messages:
    124
    Joined:
    Jun 24, 2001
    thanks that did the trick, if anyone has better way let me know.
     
  5. contitego

    contitego Limp Gawd

    Messages:
    173
    Joined:
    May 19, 2011
    I do my Java programming in NetBeans, you can configure it for each application you write. I believe my default is 7.