Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8238
| Date | 2011-06-22 11:50 -0700 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Re: running an existing script |
| References | (5 earlier) <58532636-8ddf-44ff-bcc7-1449b6dbdf80@e17g2000prj.googlegroups.com> <mailman.290.1308760634.1164.python-list@python.org> <7acdb2ca-a5a9-4c20-ade0-c598bb0b5bae@c41g2000yqm.googlegroups.com> <413b6a24-1b7c-4ae9-aef7-1533df92d1d7@v10g2000yqn.googlegroups.com> <ab9c12eb-89e9-4c8a-bb8b-7790805d2c50@j31g2000yqe.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.293.1308767801.1164.python-list@python.org> (permalink) |
Adam Chapman wrote: > Thanks again Ethan, It did begin to run nfold.py this time, after I > added the environment variable "CLASSPATH" to my system. It threw back > a java error, but I guess this isn;t the right place to be asking > about that > > C:\Users\Adam\Desktop\JBOOST\jboost-2.2\jboost-2.2\scripts>nfold.py -- > booster=Adaboost --folds=5 --data=spambase.data --spec=spambase.spec -- > rounds=500 --tree=ADD_ALL --generate > nfold.py --booster=Adaboost --folds=5 --data=spambase.data -- > spec=spambase.spec --rounds=500 --tree=ADD_ALL --generate > java.lang.NoClassDefFoundError: jboost/controller/Controller > Caused by: java.lang.ClassNotFoundException: > jboost.controller.Controller > 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) > Could not find the main class: jboost.controller.Controller. Program > will exit. > Exception in thread "main" k: 0 start:0 end:920 Looking at the batch file I see a line that modifies the CLASSPATH, so try this before you run nfold.py (cut across two lines, but it's really just one): set CLASSPATH= %CLASSPATH%;../dist/jboost.jar;../lib/jfreechart-1.0.10.jar;../lib/jcommon-1.0.8.jar Good luck! ~Ethan~
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-21 10:45 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-21 11:32 -0700
Re: running an existing script Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-21 11:25 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-21 12:00 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-21 13:12 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 08:54 -0700
Re: running an existing script Chris Rebert <clp2@rebertia.com> - 2011-06-22 09:13 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 09:35 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 09:15 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 09:51 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 09:51 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 10:13 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 10:46 -0700
Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 10:54 -0700
Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 11:50 -0700
csiph-web