How to set JAVA_HOME for multiple Tomcat instances?

前端 未结 11 1067
情话喂你
情话喂你 2020-12-14 06:29

I have 2 Java Web Projects. One runs on JDK 1.5 and the other runs on JDK 1.6. I want to run both of them on the same computer, but the JAVA_HOME environment variable can on

11条回答
  •  盖世英雄少女心
    2020-12-14 06:37

    place a setenv.sh in the the bin directory with

    JAVA_HOME=/usr/java/jdk1.6.0_43/
    JRE_HOME=/usr/java/jdk1.6.0_43/jre
    

    or an other version your running.

提交回复
热议问题