Configure WEKA in jcreater

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.