Menu

compiler...

Help
JudsonPat
2005-04-08
2012-09-15
  • JudsonPat

    JudsonPat - 2005-04-08

    When I go to start making a robot, the compiler doesn't load.
    Found 1 semantic error compiling "J:/Robocode/compilers/CompilerTest.java":

     1. public class CompilerTest {
                     <---------->
    

    *** Error: The return type of method "java.io.PrintStream append(java.lang.CharSequence $1);" does not match the return type of method "java.lang.Appendable append(java.lang.CharSequence $1) throws java.io.IOException;" inherited from type "java/lang/Appendable".
    Unable to compile with Jikes!

     
    • gypsy_fly

      gypsy_fly - 2006-02-25

      First I had to find where our IT folks hid javac. After finding it with Windows Explorer, I simply copied the location and pasted it into Robot Editor>Compiler>Preferences>Compiler Preferences>Compiler Binary and put quotes around the location:

      "C:\Program Files\Java\jdk1.5.0_06\bin\javac"

       
      • ae86

        ae86 - 2006-03-27

        i think the problem is the version of pre-installed jikes for robocode is 1.6 which will result to some problems with java 1.5 version.

        i have solved this problem by downloading the latest jikes1.22 version and point it's bin folder. also don't forget the -bootclasspath argument pointing your rt.jar file.

        eg. -bootclasspath "C:\Program Files\Java\jre1.5.0_05\lib\rt.jar"

        also, don't reset the compiler.

         
    • Hibble

      Hibble - 2005-04-10

      i also have this problem.

       
    • Kawigi

      Kawigi - 2005-04-12

      I've seen this, too. I think it's a result of using jikes with the java 1.5 runtime classes.

      If you want to use jikes and you have a 1.4.* version of java hanging around somewhere, you can go to the compiler properties and change it to point to the 1.4 version of rt.jar. If you just have the 1.5 jre, and you want to stay with 1.5 all the way, then install the entire 1.5 jdk and use javac instead of jikes.

      Or maybe IBM has a 1.5 version of Jikes somewhere that should be in there?

       
    • Anonymous

      Anonymous - 2005-04-15

      Thanks for the advice, Kawigi. I tried both suggestions and each one worked.

      1. Point the Robot Editor's Compiler Binary to the javac.exe file in the JDK's bin directory...

      2. Or download the latest Java 1.5 version of Jikes from http://jikes.sourceforge.net/. Drop the folder into the Robocode folder and point the Compiler Binary to it.

       
    • Saramah

      Saramah - 2005-06-22

      maybe i'm clueless, and i know i'm definitely new to java, robocode, etc, but neither of those suggestions appears to be working for me... everytime i try to stick the javac.exe location in the binary, it tells me that javac doesn't exist, then procedes to unpack jikes and tells me it can't compile successfully with jikes. i just reinstalled the newest version of java 1.5 on my comp. any suggestions?

       
    • hydraulos

      hydraulos - 2005-09-05

      i also heave this problem

      and i hope this will work...

       
    • GrubbmGait

      GrubbmGait - 2005-09-08

      I put Jikes 1.22 next to the jikes-1.16 directory and edited the path in Editor->Compiler. Everything works fine. You must NOT do a 'reset compiler', otherwise Robocode starts using 1.16 again.

       

Log in to post a comment.

MongoDB Logo MongoDB