How to set JAVA_HOME for multiple Tomcat instances?

前端 未结 11 1070
情话喂你
情话喂你 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:42

    For Debian distro we can override the setting via defaults

    /etc/default/tomcat6
    

    Set the JAVA_HOME pointing to the java version you want.

    JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
    

提交回复
热议问题