我无法在Windows 7上的cygwin-64bit下启动 virgo-tomcat-server-3.6.4.RELEASE 。它已正确转换路径,但仍然低于错误:
!SESSION Fri Aug 05 15:51:09 IST 2016 ------------------------------------------!ENTRY org.eclipse.equinox。发射器4 0 2016-08-05 15:51:09.520!MESSAGE 启动Eclipse平台的异常:!STACK 抛出java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader $ 1.run(URLClassLoader.java:366)at java.net.URLClassLoader $ 1.run(URLClassLoader.java:355)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:354)at java.lang.ClassLoader.loadClass(ClassLoader.java:425)at java.lang.ClassLoader.loadClass(ClassLoader.java:358)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)at at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)at at org.eclipse.equinox.launcher.Main.run(Main.java:1438)at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
我从
下载了最新的virgo-tomcat服务器https://eclipse.org/virgo/download/
在cygwin中运行 startup.sh 。我在 dmk.sh 文件中添加了一些echo语句,以找出下面输出的内容:
cygwin value: true
cygwin CLASSPATH INSIDE CYGWIN TRUE CONDITION***: :/home/pg/virgo-tomcat-server-3.6.4.RELEASE/lib/org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/lib/org.eclipse.virgo.kernel.equinox.extensions_3.6.4.RELEASE.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/lib/org.eclipse.virgo.nano.authentication_3.6.4.RELEASE.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/lib/org.eclipse.virgo.nano.shutdown_3.6.4.RELEASE.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/lib/org.eclipse.virgo.util.env_3.6.4.RELEASE.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar:/home/pg/virgo-tomcat-server-3.6.4.RELEASE/plugins/org.eclipse.equinox.console.ssh_1.0.0.v20120430-1356.jar
cygwin CLASSPATH OUTSIDE IF: .;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\lib\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\lib\org.eclipse.virgo.kernel.equinox.extensions_3.6.4.RELEASE.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\lib\org.eclipse.virgo.nano.authentication_3.6.4.RELEASE.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\lib\org.eclipse.virgo.nano.shutdown_3.6.4.RELEASE.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\lib\org.eclipse.virgo.util.env_3.6.4.RELEASE.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\plugins\org.eclipse.osgi_3.8.2.v20130124-134944.jar;D:\Softwares\cygwin64\home\myuser\local_setup\virgo-tomcat-server-3.6.4.RELEASE\plugins\org.eclipse.equinox.console.ssh_1.0.0.v20120430-1356.jar
cygwin JAVA_HOME: /cygdrive/c/PROGRA~1/Java/JDK17~1.0_7
cygwin JAVA_EXECUTABLE: /cygdrive/c/PROGRA~1/Java/JDK17~1.0_7/bin/java
cygwin JAVA_OPTS: -Xmx512m -XX:MaxPermSize=512m
看起来classpath很好。但我无法找出错误的原因以及我为什么会收到这个错误。
我尝试在Cygwin下启动正常的tomcat,这工作正常,但我无法启动virgo-tomcat。