Talk:Robocode/Older Developers Guide for building Robocode

From Robowiki
< Talk:Robocode
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Building Robocode

I'm using Eclipse(Version: 3.2.2), I've downloaded the robocode's source in .zip format, then I've imported it as "existing project", but I still got the error: com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-sun-1.6.0.07/jre" I've understand that JAVA_HOME have to be changed to my sdk, but how? Modify the OS classpath hasn't work, modyfy project standard jre hasn't work, other idea? my OS is ubuntu hardy X64

  • On my Ubuntu 8.10 x64 I use the java-6-openjdk, which I download and installed from Sun's JDK pages. I set up the JAVA_HOME and PATH in my .bashrc file, i.e. for my user account. I have added these lines in .bashrc:
# exports for Java
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
export PATH=$JAVA_HOME/bin:$PATH

I hope this helps you! --Fnl 22:53, 25 February 2009 (UTC)