Unable to create jar file

37 views
Skip to first unread message

Louis Fleming

unread,
May 9, 2022, 2:11:34 PM5/9/22
to Robocode
Student created code with Robocode compiler. code compiles and shows no errors.

Code does not show up when we try to package it or import it. 

I understand we need the jar file. We just can't get the compiler to create the jar file

fnl

unread,
May 9, 2022, 2:16:23 PM5/9/22
to Robocode
Did you use the Robot Packager of Robocode available from the menu: Robot -> Package robot or team?
This needs to be done to store the properties files for the robot containing metadata for the robot.

If not, which version of Java did you use. Java 18 does not work for Robocode (currently). So this might be an issue.

Best regards,
- Flemming

Louis Fleming

unread,
May 13, 2022, 8:11:09 AM5/13/22
to robo...@googlegroups.com
We are not using Java 18

We have tried to use Robot ->> Package but it does not find the robot 

--
You received this message because you are subscribed to a topic in the Google Groups "Robocode" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robocode/zlmGWtxVZv0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robocode+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/f02442c1-b6b8-4b49-9fde-33b692082c36n%40googlegroups.com.


--
Louis Fleming
Computer Science, and  Robotics Instructor
UIL Academic Coordinator /UIL Computer Science Coach /UIL Robotics Sponsor 
FTC 10527,10528,10529,11902
Andrews High School / Andrews Texas
UIL Region 1-3A Computer Science Champions 2007
UIL STATE 3A Computer Science Silver Medalist 2008
UIL STATE 3A Computer Science Gold Medalist 2013
UIL Regional Computer Science Qualifiers 1999-2019


fnl

unread,
May 14, 2022, 2:57:41 PM5/14/22
to Robocode
I need some more information about your system in order to reproduce the issue.
E.g. OS (Windows, Linux, macOS) and Java version.

Did you explicitly compile the robot? Sometimes people forget that the robot needs to be compiled as people are getting used to modern IDEs. 🙂
When the bot is compiled, does it show up in the "Available Robots" list when starting a new battle?

Normally a bot that is not in a package yet will show up under one of the packages with a * (star) behind it, when it has been compiled succesfully.
If the robot does not show up, this is the real problem. Not the robot packager.

I just tried this out creating and compiling an entire new bot with Robocode 1.9.4.5 under Windows 11 running on Java 17.
Robocode does not work on Java 18 as the Security Manager stuff has been removed in Java 18, which Robocode depends on.

Best regards,
- Flemming
Reply all
Reply to author
Forward
0 new messages