wow… well that was a workout.
seems that you have to have very specific way of organizing an imported library. Here are some steps I took to get it into the newly released processing 2.0:
- make sure you rename twitter4j-core-2.2.6.jar to: twitter4j226.jar
- make sure you rename the lib folder to: library
- rename twitter4j-2.2.6 to twitter4j226
Here is a screen grab of my structure
then you just go to: sketch > import library. it should be in there, it will add the following lines of code:
import twitter4j.conf.*; import twitter4j.internal.async.*; import twitter4j.internal.org.json.*; import twitter4j.internal.logging.*; import twitter4j.json.*; import twitter4j.internal.util.*; import twitter4j.management.*; import twitter4j.auth.*; import twitter4j.api.*; import twitter4j.util.*; import twitter4j.internal.http.*; import twitter4j.*; import twitter4j.internal.json.*;
I am not sure if they were all necessary, but it is what I had to do to get it to work. and now I’m tweeting using an arduino! sweet.
There is also a twitter library that runs right on the arduino as well. Check it out here: TwitterLibrary I wish I would have started this way to begin with because I want it to eventually be stand alone.