tomcat specifies the java path

Specify the jdk version of tomcat does not apply the default system environment variables

 

windows version:

At the beginning of /bin/setclasspath.bat, add

          set JAVA_HOME=D:\java\jdk1.7.0_79 

          set JRE_HOME=D:\java\jdk1.7.0_79\jre

 

Linux version:

Add in /bin/setclasspath.sh    

          export JAVA_HOME=/etc/java/jdk1.7

  1. export JRE_HOME=/etc/java/jre 

If you don’t know where your java is, there are two ways

  (1)whereis  java

  (2) ls jls -lrt /usr/bin/java

----------------------------------------

Guess you like

Origin blog.csdn.net/qq_30217227/article/details/103400976