SCIFI User Interface Designer Lukasz Wieczorek
Posted on September 2, 2012 by lukasz on arduino, Interaction Design, Processing

install Twitter4j with processing 2.0

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:

  1. make sure you rename twitter4j-core-2.2.6.jar to: twitter4j226.jar
  2. make sure you rename the lib folder to: library
  3. 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.logging.*;
import twitter4j.json.*;
import twitter4j.internal.util.*;
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.

Join the discussion 1 Comment

  • Reply

    stu shapiro

    September 23, 2013 at 2:13 pm

    Thank you for this post guys! really awesome of you !

Leave a Reply to stu shapiro Cancel reply