Eclipse+3.4.x+(Subversion)

toc

Since the structure of the Subversion repository changed after November 12, 2008, you will find two sections here of how to get Weka setup using Subversion. Also, you might want to adapt the Subversion URL, in case you want to checkout a certain version of Weka (e.g., a release or at a certain date). There is no need for any user credentials for accessing the subversion server, since anonymous access is available.

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).

 = before November 12, 2008 = This example setup here checks out the 3.5.8 release of Weka. The release's base URL is as follows: >

Requirements

 * [|Subversion] command-line client
 * ANT
 * Java 1.4 or later for Weka 3.4.x
 * Java 1.5 or later for Weka 3.5.x or later

Manual checkout
Due to the repository structure and the way Eclipse handles checkouts (Eclipse uses the top-most directory as project name, which chops off the part of all the packages!), it is not possible to checkout Weka from within Eclipse. You have to perform a manual checkout instead:

>
 * Create the following directory:


 * Open a terminal (or command prompt) and change into

>
 * Perform a checkout with Subversion's command-line client:

>
 * Change into and run ANT to setup the directory structure:

Setup Eclipse
> //File -> New -> Project//
 * Create a new //Java Project//

>


 * Select //Create separate folders for source and class files// and use the following folders:
 * Source folder name: -leave empty-
 * Output folder name: ////

>


 * Fill in the project details
 * Project name: //Weka//
 * Check //Create project from existing source// and use directory: ///tmp/weka//

>


 * Click on //Next//
 * Exclude //build// and //dist// from the build path and make sure that the output folder is //Weka/build/classes//

>


 * Click on //Finish//

 = after November 12, 2008 = This example setup here checks out the most up-to-date version of Weka. The base URL is as follows: >

Requirements

 * [|Subclipse] (you'll find an Eclipse Update URL on this page for installing Subclipse via //Help -> Software updates//)
 * Java 1.4 or later for Weka 3.4.x
 * Java 1.5 or later for Weka 3.5.x or later

Setup Eclipse
> //File -> New -> Project -> SVN//
 * Select //Checkout Projects from SVN//

>

>
 * Select or create location of repository, depending on whether you already checked something out from the Weka repository through Eclipse or not. Use the following URL for the repository:

>


 * Select //trunk/weka// from the repository tree

>


 * Check the project out using the //New Project Wizard//

>


 * Click on //Finish//


 * Create a new //Java project//

>


 * Create separate folders for source and class files
 * Source folder name: ////
 * Output folder name: ////

>


 * Fill in the project details
 * Project name: //Weka//
 * Check //Create project from existing source// and use directory: ////

>


 * Make sure that //Weka/build/classes// is the output folder

>


 * Click on //Finish//
 * When asked to confirm overwrite, just click //OK//

>


 * After the checkout process has finished, you can use the newly created Weka project.