How to MessageClassifier.java in command prompt?

View: New views
2 Messages — Rating Filter:   Alert me  

How to MessageClassifier.java in command prompt?

by D.Geethapriya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know how to run MessageClassifier.java. Could anyone please help
me in training it?


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)


_______________________________________________
Wekalist mailing list
Wekalist@...
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist

Re: How to MessageClassifier.java in command prompt?

by Peter Reutemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I don't know how to run MessageClassifier.java. Could anyone please help
> me in training it?

Since you don't specify what platform you're using, I'm assuming it is
Linux. Also, that you want to run the MessageClassifier from a command
prompt in a terminal and not the SimpleCLI.

You need to compile it (using javac) and then run it (using java). In
both cases you need to add the weka.jar to your classpath:
- commpiling
  javac -classpath /some/where/weka.jar MessageClassifier.java
- running
  java -classpath /some/where/weka.jar:. MessageClassifier <
MessageClassifier options>

In the latter case, I've included the current directory in the
classpath as well, assuming that the compiled class file of
MessageClassifier.java is located there.

HTH

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Wekalist@...
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist