java - Play 应用程序显示编译单元不在构建路径上

标签 java eclipse playframework

我最近买了一台新电脑。我从 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/

相关文章:

eclipse - 如何在Gradle类路径容器上获取​​自定义gradle配置?

java - Eclipse:搜索特定作者的java文件

java - 使用 Morphia Java 在每次更新时更新 mongo 中的 updated_at 属性

java - 我得到了错误的字符串值

java - 何时使用 Action 而不是 ActionListener

java - PagerSlidingTabStrip 打开时出错

java - 无法将新生成的 Play Framework 项目导入 IntelliJ IDEA 15

java - getResourceAsStream() 可以找到jar 文件之外的文件吗?

java - 给定系列中总和的最后 10 位数字

scala - 使用 Scala 配置 Play 框架以使用 Neo4j 图形数据库