我在Windows 7上安装了32位Weka 3.6.10和32位Weka 3.7.10。当我进入Weka-3-6文件夹并输入
RunWeka
在DOS提示符下,Weka GUI Chooser出现了。但是,当我进入Weka-3-7文件夹并输入
时RunWeka
没有任何反应 - 甚至没有任何错误消息。
与Weka 3.7.9,64位相同的问题。 Weka 3.7.9,64 bit,当我运行时
RunWeka console
我得到一个控制台提出以下内容。
Refreshing GOE props...
---Registering Weka Editors---
Exception in thread "main" java.lang.IncompatibleClassChangeError: class weka.cl
assifiers.bayes.BayesianLogisticRegression has interface weka.classifiers.Classi
fier as super class
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPropertiesCreator.java:514)
weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:606)
weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:582)
weka.core.converters.ConverterUtils.initialize(ConverterUtils.java:730)
weka.core.converters.ConverterUtils.<clinit>(ConverterUtils.java:711)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPropertiesCreator.java:514)
weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:606)
weka.gui.GenericPropertiesCreator.<clinit>(GenericPropertiesCreator.java:149)
weka.core.WekaPackageManager.refreshGOEProperties(WekaPackageManager.java:880)
weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:874) weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:813)
weka.gui.GenericObjectEditor.determineClasses(GenericObjectEditor.java:174)
weka.gui.GenericObjectEditor.<clinit>(GenericObjectEditor.java:248) weka.gui.GUIChooser.<init>(GUIChooser.java:707)
weka.gui.GUIChooser.createSingleton(GUIChooser.java:259) weka.gui.GUIChooser.main(GUIChooser.java:1558)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
at Weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPropertiesCreator.java:514)
at weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:606)
at weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:582)
at weka.core.converters.ConverterUtils.initialize(ConverterUtils.java:730)
at weka.core.converters.ConverterUtils.<clinit>(ConverterUtils.java:711)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
at weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPropertiesCreator.java:514)
at weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:606)
at weka.gui.GenericPropertiesCreator.<clinit>(GenericPropertiesCreator.java:149)
at weka.core.WekaPackageManager.refreshGOEProperties(WekaPackageManager.java:880)
at weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:874)
at weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:813)
at weka.gui.GenericObjectEditor.determineClasses(GenericObjectEditor.java:174)
at weka.gui.GenericObjectEditor.<clinit>(GenericObjectEditor.java:248) at weka.gui.GUIChooser.<init>(GUIChooser.java:707)
at weka.gui.GUIChooser.createSingleton(GUIChooser.java:259) at weka.gui.GUIChooser.main(GUIChooser.java:1558)
C:\Program Files\Weka-3-7>
答案 0 :(得分:2)
我明白了。
我安装了较旧的(3.6)版本的Weka。因此,一个较旧的jar文件在我的类路径中。我在Windows 7上的解决方案是:
1 /开始
2 / R-单击计算机
3 /属性
4 /高级系统设置
5 /环境变量
6 /系统变量
7 / CLASSPATH:编辑
8 /删除任何与旧版Weka