English 中文(简体)
缺少必需的图书馆课程_ 管理
原标题:Missing required library classes_managed

Im using play 2.0 and trying to modularize the project into a subproject. In $project_home, created folder structure ${project_home}/data/app/models/MyModel.java

建筑。 scala 外观

val dataDependencies = Seq(
)

val dataProject = PlayProject(appName + "-data", appVersion, dataDependencies, path = file("data"), mainLang = JAVA)

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
  // Add your own project settings here      
).dependsOn(dataProject).aggregate(dataProject)

我运行一个游戏 精密命令。

日食时,我输入了两个项目,主要项目和数据项目。

数据工程显示以下错误:

项目 - 缺少所需数据资料库:/病理/对/我的项目/数据/目标/卡拉-2.9.1/class_管理

我在这里做错什么了?

最佳回答

I encountered the similar problem when building a project with play 2.0.2 I created manually the target/scala-2.9.1/classes_managed folder and I run clean all projects in eclipse

我希望它能帮助

问题回答

这是对我起作用的(在Windows上)。

  1. Edit .classpath, there should be an entry similar to this: <classpathentry path="D:your_play_project_folder argetscala-2.10classes_managed" kind="lib"></classpathentry>

  2. Remove the path portion before "target" to get this: <classpathentry path="targetscala-2.10classes_managed" kind="lib"></classpathentry>

  3. 刷新日圆。

我觉得你有三种可能性:

  1. 创建数据/ 目标/ scalaa-2.9.1/ classes_ 手动管理 。

  2. 从类路徑中删除路径( 如果不需要)

  3. Switch to 2.1-snapshot

对于我,我帮助:

  1. manually removed target/scala-2.9.1/classes_managed from the .classpath file
  2. added target/scala-2.9.1/classes_managed via eclipse: project/properties/Java Build Path --> tab Libraries --> Add Class Folder...

尝试“ 播放干净”, 然后“ 播放日蚀 ”, 从工程基准文件夹中的命令提示中重新生成日蚀工程文件 。

尝试此选项 :

1) sbt> clean/compile in parent, followed by child project
2) add target/src-managed/main as source folder in eclipse, both projects
3) in child
java build path > projects > (add parent)
project references > (add parent)

Project Do, btw? 我的基项目提供 DAO 层和其他与 Play 无关的坚果 & amp; 螺栓; 因此, 我将它定义为 root stbt 工程, 并通过 deependsOn( root) 将其拖入子项目

不管怎么说,希望这能解决问题...





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.