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