Please make sure you use the newest version of Robocode
1.9.5.2, as it contains a fix in
set_java_options.sh/bat file run from
robocode.sh/bat file that fixes this error, when you use Java 11 or newer:
@rem Only set 'java.security.manager=allow' for Java version > 11
if %JAVA_MAJOR_VERSION% GTR 11 set _JAVA_OPTIONS="-Djava.security.manager=allow"
Also make sure that you run Robocode by running the robocode.bat/sh file to ensure all Java options are setup correctly for both your system, and the specific Java version being used for running Robocode.
If you set the Java options yourself in IntelliJ, then add the
-Djava.security.manager=allow in the the Java options of the launcher settings.
Make sure Robocode itself is running on at least Java 11. You can check this from the About box, which writes which Java version it run on.
If a robot will not run, then check the bot console by clicking its button on the right side of the battle view to see if error messages are printed out. If Robocode is running on an older Java version than the Java version used for compiling the bot, you will probably see an error in the console for the bot.
Write again, if you still got issues.