Netbeans 4.1
From WekaWiki
| Table of contents |
[edit]
Integration with CVS
[edit]
New Project
- In the menu File -> New Project...
- Choose General and Java Application and click on Next
Missing image
Netbeans_41_new_project.png
Netbeans_41_new_project.png
[edit]
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
Netbeans_41_new_java_project.png
[edit]
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
Netbeans_41_cvs_checkout.png
- click on OK for downloading the sources
[edit]
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
Netbeans_41_project_properties.png
[edit]
Using weka-src.jar
[edit]
Project Setup
- Follow the above instructions, but don't checkout from the CVS
[edit]
Extract Sources
- Extract the sources from weka-src.jar with any ZIP-handling program into C:\Temp\Weka\src
[edit]
Set Main Class
- See above
[edit]
Troubleshooting
-
Could not read password for host: java.io.FileNotFoundException: [...]\.cvspass
NetBeans seems to have problems creating the.cvspassfile 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.
[edit]
Links
- WEKA Homepage http://www.cs.waikato.ac.nz/~ml/weka/
- Netbeans http://www.netbeans.org/
- CVS http://www.nongnu.org/cvs/
Categories: HOWTO | Source control | IDE
