我对言语感到沮丧。我升级到STS 2.9.2,希望摆脱我在2.9.1遇到的众多问题。现在看来问题更严重了。
除了jline_.dll问题,它不断提高它的丑陋头(我找到的唯一解决方案是退出STS,删除.ivy-cache,然后重新启动STS),现在我可以'甚至运行我的任何项目,由于一些奇怪的错误没有找到groovy-all-1.8.6.jar。
The archive: C:/springsource/**grails-2.0.3**/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar which is referenced by the classpath, does not exist.
但是 - 我的所有项目都配置为grails 2.1.0!?!?
我需要在哪里找到这个对grails 2.0.3的流氓引用?
谢谢!
答案 0 :(得分:3)
然后我在.metadata中看到了文件:
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="<?xml version="1.0" encoding="UTF-8"
; standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/g
roovy-all-1.8.6.jar" path="3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="<?xml version="1.0" encoding="UTF-8"
; standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar" pat
h="3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="<?xml version="1.0" encoding="UTF-
8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/
jars/groovy-all-1.8.6.jar" path="3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="<?xml version="1.0" encoding="UTF-
8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quo
t; path="3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="<?xml version="1.0" encoding="UTF-8" s
tandalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groo
vy-all-1.8.6.jar" path="3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="<?xml version="1.0" encoding="UTF-8" s
tandalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar" path=&
quot;3" type="2"/> "/>
./plang1/.metadata/.plugins/org.eclipse.search/dialog_settings.xml: <item value="/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-a
ll/jars/groovy-all-1.8.6.jar" key="textPattern"/>
内容
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.springsource.sts.grails.core.launchconfig">
<stringAttribute key="com.springsource.sts.grails.core.ORG_SCRIPT" value="run-app"/>
<stringAttribute key="com.springsource.sts.grails.core.PROJECT_DIR" value="C:\workspaces\plang1\planG"/>
<stringAttribute key="com.springsource.sts.grails.core.SCRIPT" value="run-app"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="GRAILS_STS_RUNNING" value="true"/>
</mapAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0" path="2" type="4"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Program Files/Java/jdk1.7.0/lib/tools.jar" path="3" type="2"/> "/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.codehaus.groovy.grails.cli.support.GrailsStarter"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="planG"/>
<stringAttribute key="process_factory_id" value="com.springsource.sts.grails.core.processFactory"/>
</launchConfiguration>
我关闭了STS,删除了所有启动文件,重新启动了STS,瞧,它工作正常。没有关于2.0.3 jar文件丢失的运行时错误。