How to change Java version used by TOMCAT?

前端 未结 7 979
时光说笑
时光说笑 2020-11-27 18:40

I have Java 1.6 and Tomcat 5.5 installed on my system.

But Tomcat 5.5 accesses Java 1.5 and hence as the outcome I get the error Bad version number in .class f

7条回答
  •  时光取名叫无心
    2020-11-27 18:44

    You can change the JDK or JRE location using the following steps:

    1. open the terminal or cmd.
    2. go to the [tomcat-home]\bin directory.
      ex: c:\tomcat8\bin
    3. write the following command: Tomcat8W //ES//Tomcat8
    4. will open dialog, select the java tab(top pane).
    5. change the Java virtual Machine value.
    6. click OK.

    note: in Apache TomEE same steps, but step (3) the command must be: TomEE //ES

提交回复
热议问题