Reputation: 3
public static void main(String[] args) throws TwitterException, IOException{
StatusListener listener = new StatusListener(){
public void onStatus(Status status) {
System.out.println(status.getUser().getName() + " : " + status.getText());
}
public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {}
public void onTrackLimitationNotice(int numberOfLimitedStatuses) {}
public void onException(Exception ex) {
ex.printStackTrace();
}
I am using the above code to download streaming tweets. I get this error .
The type new StatusListener(){} must implement the inherited abstract method StatusListener.onStallWarning(StallWarning)
The type new StatusListener(){} must implement the inherited abstract method StatusListener.onScrubGeo(long, long).
Do I need to include any specific jar file?
Upvotes: 0
Views: 1361
Reputation: 3796
No need to include any more .jar files, only include the method below
public void onStallWarning(StallWarning arg0) {
}
Your code will compile and run successfully.
Hope this helps!!!
Upvotes: 1