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 & HelpSyntax Questions › Import Statement
Page Index Toggle Pages: 1
Import Statement (Read 454 times)
Import Statement
Oct 13th, 2009, 4:13pm
 
Hello I was trying to use this library but I unfortunately could not figure out how to properly write an import statement.

the library I was trying to use is

facebook-java-api-3.0.0-SNAPSHOT beta

from

http://code.google.com/p/facebook-java-api/downloads/list

What would be the easiest way to write an import statement that would encompass everything inside this library?
Re: Import Statement
Reply #1 - Oct 13th, 2009, 5:29pm
 
As far as I know, you've just got to name the .jar file, "facebook.jar" or whatever you choose, and put it inside its own folder in /libraries, like this:
SketchFolder/libraries/facebook/library/facebook.jar
then import it through the processing "Import Library" menu item, and it should automatically detect the package.
Re: Import Statement
Reply #2 - Oct 14th, 2009, 3:54am
 
BenHem's solution is perfect if you plan to use the library in several sketches. Otherwise, you can just put the jar file in a folder named code under the sketch folder.
Page Index Toggle Pages: 1