I have a project with robocode and java. There is a class to easily start robocode and test the robot in it. It is several years old and I successfully used it many times, but now, it stopped working. I have no idea why (it speaks about versions, I followed the log on github but that wasn't useful).
Could you help me ?
Warning: Robocode is running without a security manager.
Robots have full access to your system.
You should only run robots which you trust!
Update checking with http.
java.lang.IllegalArgumentException: The format of the version string is not a valid
at net.sf.robocode.version.Version.<init>(Version.java:32)
at net.sf.robocode.version.Version.compare(Version.java:167)
at net.sf.robocode.ui.dialog.RobocodeFrame.checkForNewVersion(RobocodeFrame.java:172)
at net.sf.robocode.ui.dialog.RobocodeFrame.checkUpdateOnStart(RobocodeFrame.java:158)
at net.sf.robocode.ui.WindowManager.showRobocodeFrame(WindowManager.java:155)
at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:131)
at java.base/java.lang.Thread.run(Thread.java:844)
Thanks
Last edit: Pierre-Yves 2018-11-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe this is due to a problem with the newest version of Robocode
(1.9.3.3). I fixed a problem with "java.lang.IllegalArgumentException: The
format of the version string is not a valid", which is currently available
in a beta version for the next version 1.9.3.4 coming out soon. In the
meanwhile, it is quite safe to use the beta available from here: https://robocode.sourceforge.io/files/robocode-1.9.3.4-Beta-2-setup.jar
I have a project with robocode and java. There is a class to easily start
robocode and test the robot in it. It is several years old and I
successfully used it many times, but now, it stopped working. I have no
idea why (it speaks about versions, I followed the log on github but that
wasn't useful).
Could you help me ?
Here is the class that calls robocode :
package controller;
import java.io.IOException;
public class TestBattle {
Warning: Robocode is running without a security manager.Robots have full access to your system.You should only run robots which you trust!Update checking with http.java.lang.IllegalArgumentException: The format of the version string is not a valid
at net.sf.robocode.version.Version.<init>(Version.java:32)
at net.sf.robocode.version.Version.compare(Version.java:167)
at net.sf.robocode.ui.dialog.RobocodeFrame.checkForNewVersion(RobocodeFrame.java:172)
at net.sf.robocode.ui.dialog.RobocodeFrame.checkUpdateOnStart(RobocodeFrame.java:158)
at net.sf.robocode.ui.WindowManager.showRobocodeFrame(WindowManager.java:155)
at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:131)
at java.base/java.lang.Thread.run(Thread.java:844)</init>
Hi,
I have a project with robocode and java. There is a class to easily start robocode and test the robot in it. It is several years old and I successfully used it many times, but now, it stopped working. I have no idea why (it speaks about versions, I followed the log on github but that wasn't useful).
Could you help me ?
Here is the class that calls robocode :
And here is the "main battle log" from Robocode :
Thanks
Last edit: Pierre-Yves 2018-11-28
Hi,
I believe this is due to a problem with the newest version of Robocode
(1.9.3.3). I fixed a problem with "java.lang.IllegalArgumentException: The
format of the version string is not a valid", which is currently available
in a beta version for the next version 1.9.3.4 coming out soon. In the
meanwhile, it is quite safe to use the beta available from here:
https://robocode.sourceforge.io/files/robocode-1.9.3.4-Beta-2-setup.jar
I expect that will work. :-)
Cheers,
Den ons. 28. nov. 2018 kl. 17.11 skrev Pierre-Yves asimonu@users.sourceforge.net:
That worked, thanks a lot !