I’m trying to set up my Arduino on Ubuntu Edgy, by following this howto:
[I don’t change my repositories, though, since I get to install all the packages (gcc-avr avr-libc uisp jikes j2re1.4 j2sdk1.4) with the multiverse and universe repositories in Edgy]
Compiling goes ok, but when I execute run.sh I get:
x$ ./run.sh [: 51: ==: unexpected operator It appears that the version of Jikes distributed with Processing cannot properly run on this system. Possible solutions: + If you already have Jikes installed on your system, you may just need to remove the version that is included with Processing. + You probably just need to track down a version of Jikes that will work with your distribution. + You may need to install the rpm/package for compat-libstdc++ This is what it takes to get things running on most versions of RedHat Linux or Fedora Core. + If all else fails, or if you just like building stuff yourself, you can download the source for Jikes from SourceForge: http://sourceforge.net/project/showfiles.php?group_id=128803 And it just takes a simple ./configure and make, followed by copying src/jikes to the processing-XXXX folder and you should be all set. If you get stuck, ask questions online from the helpful folks via the Processing discussion board: http://processing.org/discourse/ Good luck!
Here is the versions of java and jikes:
$ java -version java version "1.4.2-02" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
$ jikes -version Jikes Compiler - Version 1.22 - 3 October 2004 Copyright (C) IBM Corporation 1997-2003, 2004. - Licensed Materials - Program Property of IBM - All Rights Reserved. Originally written by Philippe Charles and David Shields of IBM Research, Jikes is now maintained and refined by the Jikes Project at: <http://ibm.com/developerworks/opensource/jikes> Please consult this URL for more information and for reporting problems.
I use this java:
$ sudo update-alternatives --config java Password: There are 5 alternatives which provide `java'. Selection Alternative ----------------------------------------------- 1 /usr/bin/gij-wrapper-4.1 2 /usr/lib/jvm/java-gcj/jre/bin/java 3 /usr/lib/j2re1.5-sun/bin/java 4 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java *+ 5 /usr/lib/j2se/1.4/bin/java Press enter to keep the default[*], or type selection number:
Does someone know how to solve this?