论坛首页 Java企业应用论坛

在Eclipse中的引入Grails工程的問題解決

浏览 3657 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-12-12   最后修改:2010-04-28
當你首次引入Grails工程時如出現以下錯誤:
Severity and Description Path Resource Location Creation Time Id
The project cannot be built until build path errors are resolved bookmarks Unknown 1197332891182 211
Unbound classpath variable: 'GRAILS_HOME/ant/lib/ant.jar' in project 'bookmarks' bookmarks Build path 1197332891161 142
Unbound classpath variable: 'GRAILS_HOME/dist/grails-cli-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891176 206
Unbound classpath variable: 'GRAILS_HOME/dist/grails-core-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891176 207
Unbound classpath variable: 'GRAILS_HOME/dist/grails-crud-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891175 204
Unbound classpath variable: 'GRAILS_HOME/dist/grails-gorm-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891177 209
Unbound classpath variable: 'GRAILS_HOME/dist/grails-spring-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891176 208
Unbound classpath variable: 'GRAILS_HOME/dist/grails-web-1.0-RC2.jar' in project 'bookmarks' bookmarks Build path 1197332891177 210
......

請添加一個名為GRAILS_HOME的Eclipse變量:
1、右擊Project並選擇“Property”。
2、在右側菜單中選擇“Java Build Path”。
3、點擊右側“Add Variable...”按鍵。
4、點擊左下方“Configure Variables...”按鍵。
5、選擇左側樹菜單項“Classpath Variables”,在“Classpath Variables面板中單擊“New...”按鍵。
6、在“Name”欄中輸入“GRAILS_HOME”,在“Folder”欄中定位Grails安裝目錄位置。
7、點擊“OK”按鍵,完成。
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics