播放应用程序说编译单元不在构建路径上

时间:2013-04-17 00:08:10

标签: java eclipse playframework

我最近买了一台新电脑。我从包含我的Play应用程序的Heroku中提取了git存储库,但现在每当eclipse尝试自动完成时,我都会收到一条弹出警告

  

编译单元不在Java项目的构建路径上。

我进入了Project>属性>资源>链接的资源并添加了我的播放文件夹的路径但无济于事。

如何将Play添加到eclipse?

1 个答案:

答案 0 :(得分:1)

您是否尝试使用eclipse(我认为播放2.1+)或eclipsify(播放< = 2.0)播放命令来创建您的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):