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 › loading external libraries in ubuntu
Page Index Toggle Pages: 1
loading external libraries in ubuntu (Read 1464 times)
loading external libraries in ubuntu
Jul 7th, 2009, 8:58pm
 
Hello all,
I've jumped the fence to ubuntu (jaunty) - got processing installed and working "satisfactorily." I'm trying to load the external library Beads: http://www.beadsproject.net/ - and I've created a sketchbook folder, registered it in Processing's preferences, created a 'libraries' folder in the sketchbook directory, put the Beads library in - which is a folder called 'Beads' containing a folder called 'library' containing the Beads jars. This is the configuration that would under windows or mac load the libraries, but when I try a simple:
Code:
import beads.*;
AudioContext ac;

I get "package beads does not exist."  

Any ideas?
Re: loading external libraries in ubuntu
Reply #1 - Jul 8th, 2009, 4:08am
 
Hi

linux filenames are case sensitive. you have to rename

sketchbook/libraries/Beads
to:
sketchbook/libraries/beads

(I think the Beads guys should fix this)

...and your import line has to read:
import net.beadsproject.beads.core.*;
(thats a java thing, would be the same on another OS)

Alvaro
Re: loading external libraries in ubuntu
Reply #2 - Jul 8th, 2009, 12:17pm
 
Brilliant, thanks for helping me debug that. Of course!
Page Index Toggle Pages: 1