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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-04-15
Thanks for the advice, Kawigi. I tried both suggestions and each one worked.
Point the Robot Editor's Compiler Binary to the javac.exe file in the JDK's bin directory...
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I go to start making a robot, the compiler doesn't load.
Found 1 semantic error compiling "J:/Robocode/compilers/CompilerTest.java":
*** 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!
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"
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.
i also have this problem.
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?
Thanks for the advice, Kawigi. I tried both suggestions and each one worked.
Point the Robot Editor's Compiler Binary to the javac.exe file in the JDK's bin directory...
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.
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?
i also heave this problem
and i hope this will work...
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.