Since the
Subversion structure changed in early November 2008, the structure of the
weka-src.jar changed as well. This affects the nightly
snapshots and versions later than 3.4.13 and 3.5.8.
The Example setup used in this HOWTO is for a Linux/Unix based operating system. If you are using Windows, you will have to adapt the paths accordingly (using backslashes instead forward slashes).
Create a directory for the source code, e.g., the following: /tmp/weka
Extract the source code from the weka-src.jar with any archive manager that can handle the ZIP file format into the directory you just created (don't forget to re-recreate the folder structure when extracting).
change into the weka package and run the build.xml from command-line for creating all the necessary directories: ant exejar
Setup Eclipse
Start up Eclipse
Create a new Java project File -> New -> Project...
Name the project Weka
check Create separate folders for source and class files and use the following folders:
Source folder name: <leave empty>
Output folder name: build/classes
check Create project from existing code and use the following path: /tmp/weka
Exclude the build and dist directories from the build path and make sure that the default output folder is the following directory (Weka is the project name): Weka/build/classes
Click on Finish
newer than 3.4.13 and 3.5.8
Extract the source code
Create a directory for the source code, e.g., the following: /tmp/weka
Extract the source code from the weka-src.jar with any archive manager that can handle the ZIP file format into the directory you just created (don't forget to re-recreate the folder structure when extracting).
create a lib directory, if necessary (on the same level as src)
run the build.xml (above the src directory) from command-line for creating all the necessary directories: ant exejar
Setup Eclipse
Start up Eclipse
Create a new Java project File -> New -> Project...
Name the project Weka
check Create separate folders for source and class files and use the following folders:
Source folder name: src/main/java
Output folder name: build/classes
check Create project from existing code and use the following path: /tmp/weka
Exclude the src/test/java directory from the build path and make sure that the default output folder is the following directory (Weka is the project name): Weka/build/classes
Table of Contents
Since the Subversion structure changed in early November 2008, the structure of the weka-src.jar changed as well. This affects the nightly snapshots and versions later than 3.4.13 and 3.5.8.
The Example setup used in this HOWTO is for a Linux/Unix based operating system. If you are using Windows, you will have to adapt the paths accordingly (using backslashes instead forward slashes).
Requirements
up to 3.4.13 and 3.5.8
Extract the source code
/tmp/weka
ant exejar
Setup Eclipse
File -> New -> Project...
/tmp/weka
Weka/build/classes
newer than 3.4.13 and 3.5.8
Extract the source code
/tmp/weka
ant exejar
Setup Eclipse
File -> New -> Project...
/tmp/weka
Weka/build/classes