Pages: [1]   Go Down
Author Topic: NoClassDefFoundError: processing/app/Base (Debian)  (Read 1223 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I try to install arduino IDE in my debian SID with this how to:

http://www.arduino.cc/playground/Linux/Debian

then I install the package  sun-java5-jre sun-java6-jre librxtx-java

but when I run /usr/lib/arduino/arduino , I get an error:

Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base


Where is the problem????

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I try again with the copy in the svn ( arduino-0009 ) and I get the same error:

Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure quite how the debian package is set up, but it sounds like you need to add a directory to your CLASSPATH environment variable.  There should be a pde.jar somewhere from the Arduino package, and it or the directory it's in needs to be in your classpath.  You can try something like in a terminal:

export CLASSPATH=/usr/lib/arduino:$CLASSPATH

And then run Arduino.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the idea !!

I run it, I edit the file arduino an put at the end in the line CLASSPATH:

Code:
CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:lib/RXTXcomm.jar:/usr/lib/arduino

Only work if I run it since the path /usr/lib/arduino, but .... RUN !!! smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You will see this problem if you start arduino from outside of its "home".

e.g. if you don't want to fiddle with CLASSPATH, this should work:

Code:
$ cd /path/to/arduino-008/ && ./arduino

Rgds,
Ben

Logged

Pages: [1]   Go Up
Jump to: