skumaresan
unread,Oct 12, 2010, 2:48:14 PM10/12/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-twitter
Hi all,
the Code
import net.unto.twitter.Api;
import net.unto.twitter.TwitterProtos.Status;
public class LastestMessage
{
public static void main(String[] args)
{
Api api = Api.builder().build();
for (Status status :
api.publicTimeline().build().get()) {
System.out.println(String.format("%s wrote
'%s'", status.getUser().getName(), status.getText()));
}
}
}
This code is compiling fine but not when i run the program the
Exception throws as given below..
Exception in thread "main" java.lang.NoSuchMethodError:
com.google.protobuf.Descriptors
$FileDescriptor.internalBuildGeneratedFileFrom(Ljava/lang/String;[Lcom/
google/protobuf/Descriptors$FileDescriptor;Lcom/google/protobuf/
Descriptors$FileDescriptor$InternalDescriptorAssigner;)V
at net.unto.twitter.UtilProtos.<clinit>(UtilProtos.java:598)
at net.unto.twitter.UtilProtos$Url
$Scheme.<clinit>(UtilProtos.java:83)
at net.unto.twitter.Api.<clinit>(Api.java:97)
at LastestMessage.main(LastestMessage.java:7)
Please Help Me...
Thank you,
Kumaresan