Discussion:
How to open the bayes network editor
Qu Xiaoyu
2008-10-18 14:29:12 UTC
Permalink
It is the first day I use Weka and try to modify bayes network by hand. It
is said on the guide that "the Bayes network GUI is started as
java weka.classifiers.bayes.net.GUI <bif file>"
However, when I input the command into the simple CLI, nothing happened.
Should I download or install anything else except for Weka?
I really appreciate if anyone helps.

cheers, sunwing
Qu Xiaoyu
2008-10-18 15:19:05 UTC
Permalink
It is the first day I use Weka and try to modify bayes network by hand. It
is said on the guide that "the Bayes network GUI is started as
java weka.classifiers.bayes.net.GUI <bif file>"
However, when I input the command into the simple CLI, nothing happened.
Should I download or install anything else except for Weka?
I really appreciate if anyone helps.

cheers, sunwing
Peter Reutemann
2008-10-18 21:00:10 UTC
Permalink
Post by Qu Xiaoyu
It is the first day I use Weka and try to modify bayes network by hand. It
is said on the guide that "the Bayes network GUI is started as
java weka.classifiers.bayes.net.GUI <bif file>"
However, when I input the command into the simple CLI, nothing happened.
Should I download or install anything else except for Weka?
You have to run that from the commandline (command prompt, console,
terminal or whatever your operating system may call it) not the
SimpleCLI from within Weka. Here's an example (for Linux, with the
weka.jar located in directory "/some/where"):

java -cp /some/where/weka.jar weka.classifiers.bayes.net.GUI <bif file>

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
Peter Reutemann
2008-10-19 07:38:29 UTC
Permalink
Please reply to the mailing list and not to individuals on the mailing
list directly.
However, when I input java -cp c:\weka-3-4\weka.jar weka.classifiers.bayes.net.GUI <2.xml>
(my system is windows XP, and weka is installed under disk c. 2.xml is the file)
it was said by command prompt that Exception in thread "main" java.lang.NoClassDefFoundErroe: weka/classifiers/bayes/net/GUI
Weka 3.4.x does not contain the GUI editor. You have to use the
developer version.
Then I turned to the directory where the weka.jar is, and input "java weka.classifiers.bayes.net.GUI <2.xml>" behind "c:\weka-3-4>"
but the error repeated.
BTW, it is not "<2.xml>" but "2.xml". "<file>" just indicates that you
have to place your filename here...
Then I installed weka with jre again, set "WEKA_HOME=c:\weka-3-4" and add "c:\weka-3-4\weka.jar" to classpath in the environmental variables, although I do not know if it is right. I think JAVA environment in my computer should be OK, because weka runs well. But the error remained the same.
I am wondering if there is any specific command for windows or I should update weka to 3-5.
The latter, since it's only available from 3.5.8 on.

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
sunwing
2008-10-19 10:19:19 UTC
Permalink
I am terribly sorry for replying to individuals.
Now it works, I really appreciate Peter's help.
Thank you very much!
Post by Peter Reutemann
Please reply to the mailing list and not to individuals on the mailing
list directly.
However, when I input java -cp c:\weka-3-4\weka.jar
weka.classifiers.bayes.net.GUI <2.xml>
(my system is windows XP, and weka is installed under disk c. 2.xml is the file)
it was said by command prompt that Exception in thread "main"
java.lang.NoClassDefFoundErroe: weka/classifiers/bayes/net/GUI
Weka 3.4.x does not contain the GUI editor. You have to use the
developer version.
Then I turned to the directory where the weka.jar is, and input "java
weka.classifiers.bayes.net.GUI <2.xml>" behind "c:\weka-3-4>"
but the error repeated.
BTW, it is not "<2.xml>" but "2.xml". "<file>" just indicates that you
have to place your filename here...
Then I installed weka with jre again, set "WEKA_HOME=c:\weka-3-4" and add
"c:\weka-3-4\weka.jar" to classpath in the environmental variables,
although I do not know if it is right. I think JAVA environment in my
computer should be OK, because weka runs well. But the error remained the
same.
I am wondering if there is any specific command for windows or I should
update weka to 3-5.
The latter, since it's only available from 3.5.8 on.
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
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
--
View this message in context: http://www.nabble.com/How-to-open-the-bayes-network-editor-tp20047797p20054760.html
Sent from the WEKA mailing list archive at Nabble.com.
Loading...