Compiled but can't see...

Jump to navigation Jump to search

Okay, so I took the .class file and folder and threw it in the native Robocode folder and it works fine. So I know that's okay.

But still when I have it in my dev folder it doesn't show. In Robocode I have added: C:\MyRobots\build\classes\zjk C:\MyRobots\build\classes\ C:\MyRobots\build\ C:\MyRobots\

...and none of them work! :/

Therealdrag000:23, 2 October 2012

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Return to Thread:Talk:Robocode/My First Robot/Compiled but can't see.../reply (7).

 

Thanks I got it to work.

Therealdrag018:12, 14 October 2012

I am taking a course which is based on robocode and I found this thread in Google but @Therealdrag0 didn't mention how to actually solve the problem.

So the correct path must be the same as the package of the java class. For example, if the robot has package com.example.robot.MyRobot

then the only way robocode will see the robot is if you add a folder, let's say main, and inside there are folders com/example/robot containing MyRobot.class

so if my robot is compiled to build/classes/java/main/com/example/robot/MyRobot.class I have to add build/classes/java/main as a source ¯\_(ツ)_/¯

Thanks anyways.

Mborzenkov (talk)03:42, 30 September 2021