Note: 1. This document assumes that you have installed JDK and obtained WEKA installation. Program .
2, on WEKA source code: installation directory has a weka-src.jar unzip is the source code.
3. I don't know much about the details of the jcreator, but I barely ran WEKA. If you have any suggestions, please kindly advise.
To create a WEKA development environment (for Windows + jcreator), follow these steps:
1. Extract the weka-src.jar and obtain the source code, which is located in the WEKA directory. Create a directory locally. Assume that C:/myweka is created. Create SRC and classes folders under the Directory and put the WEKA directory containing the source code under SRC.
2. Open jcreator, create a project, select Basic Java application, and select a directory. Note that this is important. Otherwise, the original layered architecture is not available.
Name myweka
Location C:/myweka/
Sourcepath C:/myweka/src
Output C:/myweka/classes
Select create a new workspace (do not select Add to original workspace)
Then finish.
3. Right-click the project and choose compile project. Compilation is successful. At this time, jcreator produces two files, myweka. Java mywekaframe. java.
If you use the "run project" command at this time, their interface will appear (I do not know how to solve it ).
You can find the src-weka-gui-GUIChooser.java in the jcreator window directory to select it, and then run it using the run file command, it will pop up a lot of exceptions, don't be afraid.
This is because you compiled fewer things in the classes directory, not the. Class file. Follow the prompts to check the classes directory after WEKA. jar is decompressed in the weka installation directory to see what is missing and copy it to your own classes. For example, WEKA. Gui has a folder named images, as well as several images and several. Pros files. weka.gui.beans has an icons folder named weka.coreand has a vesion.txt file.
Then you can run the WEKA. Gui. guichooser. Java file! You can also run WEKA. Gui. simplecli. Java and WEKA. Gui. exporer. exporer, Java, and so on can see several main interfaces respectively.