[Wekalist] Weka > 3.7.3 is not starting in Windows 7

Ovidiu Ivanciuc ivanciuc at gmail.com
Thu Jun 13 15:35:28 NZST 2013


On Wed, Jun 12, 2013 at 9:19 PM, Mark Hall <mhall at pentaho.com> wrote:

> From: Ovidiu Ivanciuc <ivanciuc at gmail.com>
> Reply-To: "Weka machine learning workbench list." <
> wekalist at list.scms.waikato.ac.nz>
> Date: Thursday, 13 June 2013 2:05 PM
> To: "Weka machine learning workbench list." <
> wekalist at list.scms.waikato.ac.nz>
> Subject: [Wekalist] Weka > 3.7.3 is not starting in Windows 7
>
> Hi,
>
> Up to (and including) Weka 3.7.3 i can launch the program with:
>
> "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx512m -classpath
> "%CLASSPATH%;weka.jar" weka.gui.GUIChooser
>
> On the same computer, newer versions of Weka will not start with this
> command, or with RunWeka.bat.
>
> I am using Windows 7 64bit, with Java 7u21, 32 & 64 bit.
> I tested with Weka from 3.7.4 to 3.7.9 (32 and64 bit) with no success.
>
> Here is the output for Weka-3-7-9 32 bit:
>
>
> C:\Software\Weka\Weka-3-7-9-32>"C:\Program Files
> (x86)\Java\jre7\bin\java.exe" -
> Xmx512m -classpath ";weka.jar" weka.gui.GUIChooser  1
> [Weka] massiveOnlineAnalysis can't be loaded because
> C:\Users\Ovidiu\wekafiles\p
> ackages\massiveOnlineAnalysis\lib\moa.jar appears to be missing.
> [Weka] massiveOnlineAnalysis can't be loaded because the moa.jar file
> seems to b
> e missing. Download MOA from http://www.cs.waikato.ac.nz/~abifet/MOA/ and
> copy t
> he moa.jar file to $HOME/wekafiles/packages/massiveOnlineAnalysis/lib
> Refreshing GOE props...
> ---Registering Weka Editors---
> Exception in thread "main" java.lang.NoClassDefFoundError:
> weka/classifiers/tree
> s/j48/C45PruneableClassifierTreeG
>         java.lang.Class.forName0(Native Method)
>         java.lang.Class.forName(Unknown Source)
>         weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
>
> weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericProper
> tiesCreator.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(GenericProper
> tiesCreator.java:514)
>
> weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:
> 606)
>
> weka.gui.GenericPropertiesCreator.<clinit>(GenericPropertiesCreator.java
> :149)
>
> weka.core.WekaPackageManager.refreshGOEProperties(WekaPackageManager.jav
> a:880)
>
> weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:874)
>
> weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:813)
>
> weka.gui.GenericObjectEditor.determineClasses(GenericObjectEditor.java:1
> 74)
>         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.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
>         at
> weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPro
> pertiesCreator.java:514)
>         at
> weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.ja
> va:606)
>         at
> weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.ja
> va:582)
>         at
> weka.core.converters.ConverterUtils.initialize(ConverterUtils.java:73
> 0)
>         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(GenericPro
> pertiesCreator.java:514)
>         at
> weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.ja
> va:606)
>         at
> weka.gui.GenericPropertiesCreator.<clinit>(GenericPropertiesCreator.j
> ava: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.jav
> a: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)
> Caused by: java.lang.ClassNotFoundException:
> weka.classifiers.trees.j48.C45Prune
> ableClassifierTreeG
>         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)
>         ... 22 more
>
>
> Do you have an old version of the J48graft package installed? There were a
> couple of classes related to this method that didn't get moved from core
> Weka to the package when schemes were originally split out into packages.
> This got rectified a while ago and the package updated. Try deleting and
> then re-installing the J48graft package. Note that Windows seems locks
> files that are in the CLASSPATH which makes it impossible for Weka's
> package manager to completely uninstall a package – it is best to delete
> the package folders manually from ${user.home}/wekafiles/packages under
> Windows.
>
> Cheers,
> Mark.
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: Wekalist at list.scms.waikato.ac.nz
> List info and subscription status:
> https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette:
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>
>
Hi Mark,

Thanks! I deleted J48graft.jar installed for Weka 3.7.3, and now all higher
versions are working.

Regards,
Ovidiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.waikato.ac.nz/pipermail/wekalist/attachments/20130612/d9aa7434/attachment.html>


More information about the Wekalist mailing list