eclipse中的源文件夹

时间:2014-10-30 04:38:33

标签: java eclipse

我在Eclipse中将hadoop源代码导入为Java项目,并将包名称视为文件夹。但是,当我尝试运行它时,它会抛出"无法找到主要类"。如何更改结构或如何运行它?

1 个答案:

答案 0 :(得分:0)

您是否关注the instructions in the BUILDING.txt file

Importing projects to eclipse
When you import the project to eclipse, install hadoop-maven-plugins at first.

  $ cd hadoop-maven-plugins
  $ mvn install

Then, generate eclipse project files.

  $ mvn eclipse:eclipse -DskipTests

At last, import to eclipse by specifying the root directory of the project via
[File] > [Import] > [Existing Projects into Workspace].