0

我使用 PLAY 框架创建了一个 java 项目。但是当我添加另一个项目的一些外部包时,它给出了编译错误。我还添加了所需的所有相关 jars。并且还使我的原始项目依赖于具有 MyUtils 包的项目。

“错误:包 MyUtils 不存在”

如何解决这个问题? 编译错误

4

2 回答 2

2

You are talking about projects and dependencies as if you were working on eclipse or similar, and I believe I can guess what you're doing, which will make it compile in eclipse, but is not related to how it will work once you run play on its own.

Make sure that you have the jar that contains the MyUtils package in the lib dir of your project.

于 2012-12-24T16:03:15.427 回答
1

您是否尝试过创建 lib 文件夹并将您的 jar 添加到该目录? http://www.playframework.org/documentation/2.0.4/SBTDependencies

于 2012-12-27T23:39:13.823 回答