tomcat6启动不了解决了

我用的是tomcat6,在tomcat安装目录里启动tomcat6,启动不了,打开命令行切换到tomcat
安装目录启动,出现以下错误。
D:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>tomcat6
java.lang.NoClassDefFoundError: start
Caused by: java.lang.ClassNotFoundException: start
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: start.  Program will exit.
Exception in thread "main"


仔细检查了一下,下图中mode中选择了java项,导致了此错误


tomcat6启动不了解决了

mode改为jvm,问题解决 ,tomcat正常启动了。⊙﹏⊙b汗

你可能感兴趣的:(tomcat)