Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run autoweka in cmd line #20

Open
lov3binary opened this issue Jun 29, 2022 · 4 comments
Open

Cannot run autoweka in cmd line #20

lov3binary opened this issue Jun 29, 2022 · 4 comments

Comments

@lov3binary
Copy link

Hi, i am trying to run autoweka from cmd line, e.g. (from AutoWeka user manual document, page.4)
java -cp autoweka.jar weka.classifiers.meta.AutoWEKAClassifier -h

And I got exception like this:
Error: Could not find or load main class weka.classifiers.meta.AutoWEKAClassifier
Caused by: java.lang.NoClassDefFoundError: weka/core/AdditionalMeasureProducer

Can anyone suggest what I should do? Thanks.

@DraXus
Copy link
Collaborator

DraXus commented Jun 29, 2022

Hi @lov3binary,

That error means that it cannot find that class of Weka. Try adding the weka folder to your classpath.

@lov3binary
Copy link
Author

Hi @lov3binary,

That error means that it cannot find that class of Weka. Try adding the weka folder to your classpath.

I ran the command within autoweka installed folder. I also exported CLASSPATH to that path.

@DraXus
Copy link
Collaborator

DraXus commented Jun 29, 2022

Maybe try compiling weka.jar from weka-3.7.7 folder and then pass it also via -cp argument.

Bear in bind that this is a very old software that is no longer maintained, so make sure to use Java 1.8.

@lov3binary
Copy link
Author

Maybe try compiling weka.jar from weka-3.7.7 folder and then pass it also via -cp argument.

Bear in bind that this is a very old software that is no longer maintained, so make sure to use Java 1.8.

I installed dmg on mac. I guess i will have to try compile it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants