We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › arduino via firmata via processing via eclipse
Page Index Toggle Pages: 1
arduino via firmata via processing via eclipse (Read 1285 times)
arduino via firmata via processing via eclipse
Apr 11th, 2009, 11:13pm
 
anyone had any success with this? I have gotten code to work fine on the arduino through p5, but when brought into eclipse, the same code fails...seems eclipse does not want to build classes for serial or arduino.

to be more specific, i have included the .jar files from serial and arduino into my build, autocomplete works, and declaring " Arduino ard; " works fine. regular p5 code works just dandy too. however, once i start calling any member f'ns of Arduino or Serial, or instantiating, i.e. " ard = new Arduino(this, Arduino.list()[0]);"  i end up with errors.

namely!

Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: gnu/io/SerialPortEventListener
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
     at cc.arduino.Arduino.list(Arduino.java:119)
     at Main.setup(Main.java:27)
     at processing.core.PApplet.handleDraw(PApplet.java:1383)
     at processing.core.PApplet.run(PApplet.java:1311)
     at java.lang.Thread.run(Thread.java:613)


insight would be greatly appreciated, otherwise i'll have no choice but to *gasp* do it all in openFrameworks.
Page Index Toggle Pages: 1