Twitter4j Eclipse <terminated> GetUserStatus


Title says it all really.

I’m using Twitter4j in Eclipse in order to get tweet data for a university project I’m doing and I have stumbled upon a problem.

I have successfully created a Twitter Application and obtained the keys;
I have included the “twitter4j-core-2.2.5.jar” in the Project by created a lib folder and adding the JAR to it using ‘build path’ > ‘add external archives’

I am using “GetUserStatus” class as demonstrated here:

I have built the project and found no errors, however when I run the application as Java Application I get the following message in ‘Console’;
" GetUserStatus [Java Application] C:\Program Files\Java\jre7\bin\javaw.exe"

Does anyone have any idea where I’m going wrong?
I have also put my keys in the GetUserStatus class
twitter.setOAuthAccessToken(new AccessToken(“access_token”,“access_secret”));


Hi Viewers, this issue has been resolved. How do I close the Discussion?


I am getting the same issue , Will u help me solve my issue ?



I had to add “twitter4j-core-3.0.5.jar” to my eclipse project library; I did this using the following steps in Eclipse:

  1. In the main eclipse window right click on your project,
  2. Locate the option “Build Path”,
  3. In Build Path click on the option “Add External Archives”,
  4. Locate the jar file you need (“twitter4j-core-3.0.5” in my case) and click “Open”,
    The core file is located in the subdirectory “lib” in the main “twitter4j-3.0.5” folder
  5. It should build the .jar file into a folder called “Referenced Libraries”,
  6. Run the project again and it should allow you to retrieve tweets.

Hope this helps