我最近买了一台新电脑。我从 Heroku 中提取了包含我的 Play 应用程序的 git 存储库,但现在每当 Eclipse 尝试自动完成时,我都会收到一条弹出的警告
The compilation unit is not on the build path for a Java project.
我进入“项目”>“属性”>“资源”>“链接资源”,并将路径添加到我的 Play 文件夹,但无济于事。
如何将 Play 添加到 eclipse?
最佳答案
您是否尝试过使用eclipse
(我认为是play 2.1+)或eclipsify
(play <=2.0) Play 命令来创建您的eclipse项目文件?
例如:
play! 2.1.0 (using Java 1.7.0_17 and Scala 2.10.0), http://www.playframework.org
> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.
[mpapi] $ eclipse
[info] About to create Eclipse project files for your project(s).
[info] Successfully created Eclipse project files for project(s):
关于java - Play 应用程序显示编译单元不在构建路径上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16049299/