Why robocode is not starting?

1.5k Views Asked by At

I have installed latest Java version then tried to install Robocode from terminal and from sourceforge but in first case i got an error:

 java.lang.ClassNotFoundException: 
net.sf.robocode.core.RobocodeMainBase
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    at net.sf.robocode.security.HiddenAccess.init(HiddenAccess.java:86)
    at net.sf.robocode.security.HiddenAccess.robocodeMain(HiddenAccess.java:279)
    at robocode.Robocode.main(Robocode.java:27)

Can't find robocode.core-1.x.jar module near to robocode.jar
Class path: /usr/share/java/robocode.jar

I also tried installing from setup.jar but then in file directory there is no robocode.sh file. any suggestions?

1

There are 1 best solutions below

0
Hernanvq On

Robocode does not support Java 11 yet. So you have to do some work before like adding all the jar files under /libs to your class path.

That was a more work than I wanted, so I changed my compiler to an older version, Java 1.8. Either way it works.