有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

eclipse中的java源文件夹

我已经在Eclipse中将hadoop源代码作为Java项目导入,在Eclipse中,包名被视为文件夹。但当我尝试运行它时,它抛出“找不到主类”。如何更改结构或如何运行它


共 (1) 个答案

  1. # 1 楼答案

    你跟踪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].