startup.bat启动的时候,一闪而过,停止, 没有提示信息,错误信息,没有任何log。。。
后面在 startup.bat、 catalina.bat 最后 加入 pause。 也看不到结果。。
命令行直接运行 catalina.bat run 吧! 果然,看到了错误!
F: estapache-tomcat-8.5.11in>catalina.bat run
Using CATALINA_BASE: "F: estapache-tomcat-8.5.11"
Using CATALINA_HOME: "F: estapache-tomcat-8.5.11"
Using CATALINA_TMPDIR: "F: estapache-tomcat-8.5.11 emp"
Using JRE_HOME: "E:Javajdk6jre"
Using CLASSPATH: "F: estapache-tomcat-8.5.11inootstrap.jar;F: estapache-tomcat-8.5.11in omcat-juli.jar"
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
请按任意键继续. . .
原来是 jdk 版本问题!