Tag Archives: NetBeans

Build a nutch .war with NetBeans

The computer uses: Window Vista, Netbeans.

I tried to build a .war for nutch 1.3. At last, I did it. I wrote down teh

steps.

1), download at http://apache.mobiles5.com//nutch/

a) apache-nutch-1.3-bin.zip
b) apache-nutch-1.3-src.zip

2) unzip them;

3) build a new folder named nutch13; and copy “src” folder from “apache-

nutch-1.3-src” to “nutch13” folder.

4) In Netbeans, build a web project with existing source. Get the files

from “src” folder.

5) Then copy the “lib” folder from “apache-nutch-1.3-bin” to the “nutch13”

folder.

6) from NetBeans, at the “projects” panel, right-click “Libraries”, add

“jar/folder”, add all the files in the “lib” folder.

7) the “build project”

8) Now, the Output window shows: BUILD SUCCESSFUL.

9) in the “dist” folder, there is a nutch13.war file now.

NetBeans Error: A package folder can only be used in one project

I downloaded nutch-1.3.src and tried to build it with NetBeans IDE 7.0.1.

I searched online and found an article saying that I need to create a new “Java Project with Existing Sources”.

But when I tried to create that new project, on the second step: Add Source Package Folder, I met this problem:

The following folders that you selected are already used in this or another project. A package folder can only be used in one project in one package folder list (source packages or test packages)

I was confused quite a while. At last, I built a new folder and copied the folder “src” of nutch-1.3-src to the new folder and than chose that folder “” at the “add folder” step. It works just fine.