Build the best - destroy the rest!

Monday, 26 January 2009

Robocode 1.7 Beta 2

This version contains bugfixes for bugs found in the previous 1.7 Beta.

Bugfixes


  • Bugfix [2527112] Ubuntu throws NullPointerException in main when trying to startup Robocode.

  • Bugfix [2528467] Installation fail on windows if directory contain space(s).


Changes


  • Improved the version checking for new Robocode versions available for download.



Download 1.7 Beta from here

5 comments:

xZack said...

Did the compiler change? I pass an AdvancedRobot object reference to an enemyWave class. I get this error:

Compiling...

Found 1 semantic error compiling "C:/robocode/robots/per6/Scope.java":

318. startTick = self.getTime()-1;
^-----^
*** Semantic Error: The class file "BulletMissedEvent.class" in "libs\robocode.jar\robocode" has an invalid format (duplicate local variable type table).
Compile Failed (1)

It worked fine on previous versions.

xZack said...

Hmmm. The problem only appears when using jikes....

Flemming N. Larsen said...

Hi xZack,

Yes, unfortunately Jikes has not been updated for years, and it cannot compile Java 6 stuff. I am considering removing it in the future, but for now lot's of users are happy that Jikes comes along with Robocode.

Matthew said...

I am getting the same problem, or one a lot like it:

Found 1 semantic error compiling "C:/robocode/robots/Netbattler11/CornerBot.java":

8. public class CornerBot extends Robot
^-------^
*** Semantic Error: The class file "BulletMissedEvent.class" in "libs\robocode.jar\robocode" has an invalid format (duplicate local variable type table).
Compile Failed (1)

I'm not even sure what the problem is. I'm new at this, so could I have some help?

Flemming N. Larsen said...

Hi guys,

Unfortunately, this is a problem with the Jikes compiler that comes with Robocode. When you run into this problem, you need to use the javac compiler instead of Jikes.

1) Download and install the newest JDK from Sun (http:\\java.sun.com) under the Java SE sections.

2) Add environment variable to your system named JAVA_HOME that point to where Java is installed, e.g. C:\Program Files\Java\jdk1.6.0_17.

3) Extend your PATH environment variable to include %JAVA_HOME%\bin (Windows) or $JAVA_HOME/bin (Linux, Unix, Mac OS)

4) Reset the compiler in Robocode by first selecting Robot -> Editor in the menu, and then Compiler -> Options -> Reset compiler in the menu of the editor. Press OK to reset the compiler. Now Robocode should find the 'javac' compiler. Press OK you use 'javac' instead of Jikes.