Wrong name message when trying to add an Eclipse workspace/project to Robocode

Jump to navigation Jump to search

Wrong name message when trying to add an Eclipse workspace/project to Robocode

Hello, all. I'm brand new to Robocode (and using wiki discussions to ask questions), so please forgive me if this question has been answered before and if I'm going about asking it the wrong way.

I'm trying to integrate the Eclipse IDE for Java Developers, version Helios Service Release 2, using JDK1.6.0_24, with Robocode version 1.7.3.5, in Windows 7.

I followed the instructions in the wiki for adding an Eclipse robot project, but no matter what I've tried I get the following error message (or one like it, depending on how I configured my project and how I reference it in Robocode):

Got an error with MyFirstRobot.bmu.MyFirstRobot: java.lang.ClassNotFoundException: MyFirstRobot/bmu/MyFirstRobot (wrong name: bmu/MyFirstRobot)

My project name is MyFirstRobot, my package name is bmu, and my robot class name is MyFirstRobot. I've tried both of the "Use project folder as root for sources and class files" and "Create seperate folders for sources and class files" settings when creating the project. In the Robocode/Options/Preferences/Development Options tab, I've tried adding my workspace folder and/or child folders to the .class containing folder, all to no avail.

This problem also occurs when I try to run my project from Eclipse as described in another related wiki page.

Any ideas? (And thanks in advance!)

Burbanski16:07, 18 March 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/Add a Robot Project/Wrong name message when trying to add an Eclipse workspace/project to Robocode/reply.