遇到麻烦将griffon项目整合到eclipse和ant中

时间:2015-02-10 10:10:34

标签: eclipse groovy griffon

我已经成功地将一个griffon项目(基于ant)导入到eclipse中。我还在{eclipse的类路径中添加了griffon_homeuser_home个变量。现在我在标记选项卡中获得错误跟踪。

Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/biz.aQute/bndlib/jars/bndlib-1.50.0.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/com.h2database/h2/jars/h2-1.3.164.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.48.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/com.jcraft/jzlib/jars/jzlib-1.1.1.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/com.miglayout/miglayout-core/jars/miglayout-core-4.2.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/com.miglayout/miglayout-swing/jars/miglayout-swing-4.2.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.8.3.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.6.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-dbcp/commons-dbcp/jars/commons-dbcp-1.4.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.4.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.6.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/commons-pool/commons-pool/jars/commons-pool-1.5.6.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/jline/jline/jars/jline-0.9.94.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/junit/junit/jars/junit-4.11.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/log4j/log4j/jars/log4j-1.2.17.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/net.java.dev.glazedlists/glazedlists_java15/jars/glazedlists_java15-1.8.0.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/net.sf.ezmorph/ezmorph/jars/ezmorph-1.0.6.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/net.sf.json-lib/json-lib/jars/json-lib-2.4-jdk15.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.apache.ant/ant-junit/jars/ant-junit-1.9.3.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.apache.ant/ant-launcher/jars/ant-launcher-1.9.3.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.apache.ant/ant/jars/ant-1.9.3.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.apache.httpcomponents/httpclient/jars/httpclient-4.1.2.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.apache.httpcomponents/httpcore/jars/httpcore-4.1.2.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-actions-runtime/jars/griffon-actions-runtime-0.3.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-datasource-runtime/jars/griffon-datasource-runtime-0.3.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-glazedlists-runtime/jars/griffon-glazedlists-runtime-0.9.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-gsql-runtime/jars/griffon-gsql-runtime-0.9.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-i18n-support-runtime/jars/griffon-i18n-support-runtime-0.1.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-miglayout-runtime/jars/griffon-miglayout-runtime-0.4.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-swing-compile/jars/griffon-swing-compile-1.3.0.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon.plugins/griffon-swing-runtime/jars/griffon-swing-runtime-1.3.0.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon/griffon-cli/jars/griffon-cli-1.5.0.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon/griffon-rt/jars/griffon-rt-1.5.0.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.griffon/griffon-scripts/jars/griffon-scripts-1.5.0.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.groovy.modules.http-builder/http-builder/jars/http-builder-0.6.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.codehaus.groovy/groovy-all/jars/groovy-all-2.2.1.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.fusesource.jansi/jansi/jars/jansi-1.9.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar' in project 'addressbook'   addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.slf4j/jcl-over-slf4j/jars/jcl-over-slf4j-1.7.5.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.slf4j/jul-to-slf4j/jars/jul-to-slf4j-1.7.5.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.5.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.5.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.springframework/spring-beans/jars/spring-beans-3.2.7.RELEASE.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.springframework/spring-context-support/jars/spring-context-support-3.2.7.RELEASE.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.springframework/spring-context/jars/spring-context-3.2.7.RELEASE.jar' in project 'addressbook'    addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/org.springframework/spring-core/jars/spring-core-3.2.7.RELEASE.jar' in project 'addressbook'  addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/xerces/xercesImpl/jars/xercesImpl-2.9.1.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
Unbound classpath variable: 'C:Users/Uday/.ivy2/cache/xml-resolver/xml-resolver/jars/xml-resolver-1.2.jar' in project 'addressbook' addressbook     Build path  Build Path Problem
The project cannot be built until build path errors are resolved    addressbook     Unknown Java Problem
No grammar constraints (DTD or XML Schema) referenced in the document.  build.xml   /addressbook    line 1  XML Problem

griffon_home D:\ Griffon-1.5.0

user_home C:\ users \ Uday

请建议解决方案 感谢

1 个答案:

答案 0 :(得分:1)

找出问题所在。当我将项目与 ANT 集成时,它创建了一个构建文件,其中 griffon.home 值设置为 $ {env.Griffon_home} 但是路径没有被检索。我不知道如何解决它,但暂时我用路径到griffon主目录替换了值。(我确实在grclipse中将griffon_home添加到classpath但没有用)。现在工作正常。