I just tried this out to check that it still works for the RobocodeEngine for Robocode 1.9.4.7 running on Java 8 (should work on newer Java versions as well).
I just took some robots (from the LittleRumble) and put those robot jar archives into the
robot folder of my
robocode folder. I used acid.Bl4ck_1.0.jar attached in my answer. But you need to rename the file extension from .renamed into .jar (I could not attach a .jar file in this thread).
Even though the robot was not explicitly imported via the UI, the Robocode Engine detected it with:
engine.getLocalRepository("acid.Bl4ck,sample.Corners")
And I used the BattleRunner from the example on this page:
https://robocode.sourceforge.io/docs/robocode/robocode/control/package-summary.htmlPerhaps something is wrong with the jar archive (e.g. missing a .properties file), or you do not write the package name of the robot class correctly?
(you can open the jar archive using a unzipper to see the content).
Are you spotting any error written out to the console that could explain the issue?
- - - -
By the way. The names provided for the getLocalRepository() method are actually package names as these are the names that the Robocode ClassLoader needs in order to load the bot classes. 🙂