Menu

Robocode Compiler not found

Help
Michael
2017-02-08
2017-02-08
  • Michael

    Michael - 2017-02-08

    Error message:

    Please wait while Robocode sets up a compiler for you...

    Setting up compiler
    Java home is C:\Program Files (x86)\Java\jre1.8.0_111

    Testing compile with Java Compiler (javac)
    Java Compiler (javac) does not exists or cannot compile.
    Testing compile with Eclipse Compiler for Java (ECJ)
    Error: Could not find or load main class org.eclipse.jdt.internal.compiler.batch.Main
    Eclipse Compiler for Java (ECJ) does not exists or cannot compile.

    Unable to set up a working compiler for Robocode.

    64 bit Windows 10, Java 8, Eclipse Installed, JDK installed
    Compiler Preferences default to: -classpath "C:\Program Files (x86)\Java\jre1.8.0_111/lib/rt.jar";libs\robocode.jar;C:\robocode\libs\robots
    the others are empty, no matter what changes I make it still defaults to that every time I run the compiler.

     
  • Flemming N. Larsen

    If you have not installed the Oracle JDK (not JRE), I recommend you to download the newest version from java.oracle.com. Also make sure to setup the JAVA_HOME system environment variable to point to your JDK home dir, e.g. C:\Program Files\Java\jdk1.8.0_121
    You should add %JAVA_HOME%\bin to your PATH environment variable as well. This should work.

    Make sure to Reset the compiler in Robocode, if it does not work after this.

     

Log in to post a comment.