View source for Talk:Robocode/Older Developers Guide for building Robocode

From Robowiki
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)

Contents

Thread titleRepliesLast modified
Building Robocode (Compilation)019:28, 27 December 2015
Building Robocode000:18, 6 February 2014

Building Robocode (Compilation)

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

 

Return to Thread:Talk:Robocode/Older Developers Guide for building Robocode/Building Robocode (Compilation).

Building Robocode

Please be aware that you need to use Maven 2, not 3 to build. Just had to debug maven to find out why it would not run. Also mvn.cmd will mess with you trying to execute mvn from your path. i would recommend renaming mvn.cmd to mvn_.cmd I have tried migrating the poms to 3, but not had much luck, backed out and switched back to maven 2.

Dragonbyte (talk)00:18, 6 February 2014