2

我沮丧得说不出话来。我升级到 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 的恶意引用?

谢谢你!

4

1 回答 1

3

经过大量搜索,我发现了问题。错误报告正在引用 grails 2.0.3 jar,当然,这不是任何活动项目中的设置偏好。我搜索了所有首选项和 .project 文件。没有找到任何东西。

然后我在 .metadata 中看到了文件:

./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot
; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/g
roovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot
; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; pat
h=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-
8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/
jars/groovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-
8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quo
t; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; s
tandalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groo
vy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; s
tandalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; path=&
quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
./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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0&quot; path=&quot;2&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Java/jdk1.7.0/lib/tools.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</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 文件丢失的运行时错误。

于 2012-08-13T20:27:23.607 回答