Robocode fails during compilation

Bug #1384691 reported by Volodya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
robocode (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I have installed Robocode and created the initial class making no changes to it. I get the following compile error:

Compiling...
/home/volodya/.robocode/robots/volodya/MyRobot.java:2: error: package robocode does not exist
import robocode.*;
^
/home/volodya/.robocode/robots/volodya/MyRobot.java:8: error: cannot find symbol
public class MyRobot extends Robot
                             ^
  symbol: class Robot
/home/volodya/.robocode/robots/volodya/MyRobot.java:29: error: cannot find symbol
    public void onScannedRobot(ScannedRobotEvent e) {
                               ^
  symbol: class ScannedRobotEvent
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:36: error: cannot find symbol
    public void onHitByBullet(HitByBulletEvent e) {
                              ^
  symbol: class HitByBulletEvent
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:19: error: cannot find symbol
            ahead(100);
            ^
  symbol: method ahead(int)
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:20: error: cannot find symbol
            turnGunRight(360);
            ^
  symbol: method turnGunRight(int)
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:21: error: cannot find symbol
            back(100);
            ^
  symbol: method back(int)
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:22: error: cannot find symbol
            turnGunRight(360);
            ^
  symbol: method turnGunRight(int)
  location: class MyRobot
/home/volodya/.robocode/robots/volodya/MyRobot.java:30: error: cannot find symbol
        fire(1);
        ^
  symbol: method fire(int)
  location: class MyRobot
9 errors
Compile Failed (1)

Some libraries are not being found.

The compiler settings:

Binary: javac
Options: -deprecation -g
Classpath: -classpath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:libs/robocode.jar:/home/volodya/.robocode/robots

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: robocode 1.6.2+dfsg-3.1
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
Uname: Linux 3.13.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Oct 23 15:50:42 2014
InstallationDate: Installed on 2014-10-02 (20 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: robocode
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Volodya (volodya) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package robocode - 1.9.2.4-1

---------------
robocode (1.9.2.4-1) experimental; urgency=medium

  * Imported Upstream version 1.9.2.4. (Closes: #551877) (LP: #377376)
    - Fix compilation errors by using the default-jdk. (LP: #1384691)
  * New build system: Maven
    - Switch to CDBS and maven-debian-helper.
    - New files:
      + maven.ignoreRules
      + maven.properties
      + maven.rules
      + clean
      + robocode.poms
  * debian/control:
    - New build-dependencies:
      junit4, junit4-doc, libcodesize-java, libecj-java,
      libmaven-assembly-plugin-java, libmaven-dependency-plugin-java,
      libmaven-javadoc-plugin-java, libpicocontainer-java,
      libpicocontainer-java-doc
    - robocode: Add ${maven:Depends} substvar.
    - robocode: Recommend default-jdk-doc.
    - Drop robocode-doc. All documentation will be provided by robocode itself.
  * Drop debian/codesize. Codesize is now packaged as a standalone library.
  * Drop all patches because they are all obsolete:
    - 01-use-sensible-browser.diff
    - 02-use-versions.txt-from-usr-share-doc.diff
    - 03-point-api-help-to-robocode-doc.diff
    - 04-link-to-local-docs.diff
    - 05-codesize-jar.diff
    - 06-update-manager.diff
  * Add the following patches:
    - ecj.patch: For preventing a FTBFS. Use Debian's version of the ecj
      compiler. Please note that libecj-java is only needed to compile Robocode
      successfully but that Debian uses the default-jdk compiler instead.
    - showJavaDocumentation.patch: Users should use Debian's local
      default-jdk-doc.
  * Install roborumble example script with robocode.examples file to
    /usr/share/doc/robocode/examples. Please use this script as a template for
    running the Robocode competitions on your computer.
  * Update robocode wrapper script. Use XDG_DATA_HOME as the personal data
    directory for Robocode. All user data will be installed to
    ~/.local/share/robocode/$VER where $VER is the current upstream version.
  * Update debian/watch and detect new upstream releases at github.com.
  * Update get-orig-source target. The sources are pristine now.
  * Update debian/copyright for new release. Robocode is licensed under the
    EPL-1.0 now.
  * Update man page of Robocode for new release.
  * Drop README.source.

 -- Markus Koschany <email address hidden> Sun, 23 Nov 2014 18:38:32 +0100

Changed in robocode (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.