Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Error when writing program on processing 2.0b7 on: January 22, 2013, 12:12:48 pm
See that b in the version number? That stands for buggy. Oh, wait, I meant beta. It means that it is not ready for prime time. Go back the last stable version that plays well with the Arduino - 1.5.1.
Thank you, it works fine now.
2  Using Arduino / Interfacing w/ Software on the Computer / Error when writing program on processing 2.0b7 on: January 21, 2013, 05:42:55 pm
Hi everybody! I'm a newbie and now trying to work on my project. I'm trying to control my freeduino 1.16 board by processing 2.0b7 (I use arduino library for processing). When I'm trying to run this simple code:

import processing.serial.*;
import cc.arduino.*;

Arduino arduino;
int ledPin = 13;

void setup()
  arduino = new Arduino(this, Arduino.list()[0], 57600);    // <--here the error
  arduino.pinMode(ledPin, Arduino.OUTPUT);

void draw()
  arduino.digitalWrite(ledPin, Arduino.HIGH);
  arduino.digitalWrite(ledPin, Arduino.LOW);

i receve this error message:

Stable Library
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
[0] "COM3"
Exception in thread "Animation Thread" java.lang.IllegalAccessError: tried to access class processing.core.PApplet$RegisteredMethods from class cc.arduino.Arduino$SerialProxy
at cc.arduino.Arduino$SerialProxy.<init>(
at cc.arduino.Arduino.<init>(
at arduino_input.setup(
at processing.core.PApplet.handleDraw(
at processing.core.PGraphicsJava2D.requestDraw(

I wasted a couple hours reading manuals but still dont understand what is wrong. Could anyone explain me whats wrong?
Pages: [1]