0
我試圖在CentOS上使用Xvfb運行GWT Devmode與Ant,我得到的似乎是Java版本錯誤。堆棧跟蹤的開始是在CentOS上使用Xvfb運行GWT Devmode
[java] JVM args ignored when same JVM is used
[java] Working directory ignored when same JVM is used.
[java] java.lang.NoClassDefFoundError: java.util.concurrent.Semaphore
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.run(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.execute(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeTarget(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.run(ant-launcher-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.main(ant-launcher-1.6.5.jar.so)
[java] Caused by: java.lang.NoClassDefFoundError: java.util.concurrent.Semaphore
[java] at com.google.gwt.dev.DevModeBase.<init>(DevModeBase.java:749)
[java] at com.google.gwt.dev.DevMode.<init>(DevMode.java:341)
[java] at com.google.gwt.dev.DevMode.main(DevMode.java:309)
[java] at java.lang.reflect.Method.invoke(libgcj.so.7rh)
我安裝了Sun的java 1.7.0,我認爲它的設置正確。它顯示當我做「java -version」,當我做「選擇 - 配置java」(版本1.4.2被設置爲默認,但我已經改變了當前版本)。
這是我正在運行的螞蟻任務。請注意,我已經嘗試了叉的所有組合=「真|假」和產卵=「真|假」
<target name="devmode" depends="" description="Run development mode">
<java fork="true" classname="com.google.gwt.dev.DevMode"
dir="${basedir}/war" spawn="true">
<classpath>
<pathelement location="src" />
<path refid="project.class.path" />
<path refid="tools.class.path" />
</classpath>
<jvmarg value="-Xmx512M" />
<jvmarg value="-javaagent:${appengine.folder}/lib/agent/appengine-agent.jar" />
<jvmarg value="-Duser.dir=${basedir}/war" />
<arg line="-war" />
<arg value="${basedir}/war" />
<arg line="-logLevel" />
<arg value="INFO" />
<arg value="-server" />
<arg value="com.google.appengine.tools.development.gwt.AppEngineLauncher" />
<arg value="net.bookedin.bam.BAM" />
</java>
</target>
我的$ CLASSPATH變量(假設事項)表示:/usr/java/jdk1.7.0 _02/lib