简体   繁体   中英

Why robocode is not starting?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM