RoboRumble NoClassDefFoundError

Jeff Van Epps <[email protected]>
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
./roborumble.sh
(downloads many bots)
Exception in thread "Application Thread" java.lang.NoClassDefFoundError: 
net/sf/robocode/repository/CodeSizeCalculator
at 
net.sf.robocode.roborumble.battlesengine.CompetitionsSelector.checkCompetitorForSize(CompetitionsSelector.java:57)
at 
net.sf.robocode.roborumble.netengine.BotsDownload.updateCodeSize(BotsDownload.java:300)
at roborumble.RoboRumbleAtHome.main(RoboRumbleAtHome.java:81)
Caused by: java.lang.ClassNotFoundException: 
net.sf.robocode.repository.CodeSizeCalculator
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I had saved off the Participants list as HTML and added my bot to it and 
hosted it on my own web server, then changed roborumble/roborumble.txt:
UPLOAD=NOT
ITERATE=NOT
PARTICIPANTSURL=http://<myserver>/Participants.html
but it doesn't seem like those changes did any harm.

I do see CodeSizeCalculator.class inside libs/robocode.core-1.9.0.0.jar. 
But that's not in the -cp arguments in roborumble.sh. If I try to add it, I 
get

java.lang.NoClassDefFoundError: org/picocontainer/ComponentFactory
at 
net.sf.robocode.core.RobocodeMainBase.initContainerForRobocodeEngine(RobocodeMainBase.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
net.sf.robocode.security.HiddenAccess.initContainerForRobotEngine(HiddenAccess.java:243)
at robocode.control.RobocodeEngine.init(RobocodeEngine.java:138)
at robocode.control.RobocodeEngine.<init>(RobocodeEngine.java:60)
at 
net.sf.robocode.roborumble.battlesengine.BattlesRunner.initialize(BattlesRunner.java:64)
at 
net.sf.robocode.roborumble.battlesengine.BattlesRunner.<init>(BattlesRunner.java:59)
at roborumble.RoboRumbleAtHome.main(RoboRumbleAtHome.java:59)
Caused by: java.lang.ClassNotFoundException: 
org.picocontainer.ComponentFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Am I going to wind up having to add every .jar in libs to the classpath 
arguments in roborumble.sh?

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.