Netbeans 4.1

From WekaWiki

Table of contents

Integration with CVS

New Project

  • In the menu File -> New Project...
  • Choose General and Java Application and click on Next
Missing image
Netbeans_41_new_project.png

New Java Application

  • choose as project name Weka
  • choose a folder where the project should be created, e.g., C:\Temp
  • uncheck Create Main Class
Missing image
Netbeans_41_new_java_project.png

Checkout from CVS

  • In the menu Versioning -> CVS -> Checkout...
  • The dialog informing you about the CVS functionality can be ignored (if it is annoying, just check Do not show this dialog again), proceed by clicking on Check Out...
  • Enter the following information:
Working Directory C:\Temp\Weka\src
CVS Server Type pserver
CVS Server Name cvs.scms.waikato.ac.nz
Port 2401
User Name cvs_anon
Repository Path /usr/local/global-cvs/ml_cvs
Password (no password needed)
Module(s) weka
This is what the dialog should look like:
Missing image
Netbeans_41_cvs_checkout.png
  • click on OK for downloading the sources

Set Main Class

  • In the menu File -> "Weka" Properties...
  • Go to Run in the tree and enter weka.gui.GUIChooser as the main class
  • optionally, add the JVM heap size, e.g., -Xmx800m as VM Options
Missing image
Netbeans_41_project_properties.png

Using weka-src.jar

Project Setup

Extract Sources

  • Extract the sources from weka-src.jar with any ZIP-handling program into C:\Temp\Weka\src

Set Main Class

Troubleshooting

  • Could not read password for host: java.io.FileNotFoundException: [...]\.cvspass
    NetBeans seems to have problems creating the .cvspass file in ones home directory. It is possible to fix this behavior by checking out Weka with a normal CVS client. See also this post (https://list.scms.waikato.ac.nz/mailman/htdig/wekalist/2006-September/007989.html) on the Wekalist.

Links