[英]JTwitter : getStatus()
I'm creating a desktop Twitter client in Java and I'm using JTwitter. 我正在使用Java创建桌面Twitter客户端,并且正在使用JTwitter。 I tested a few lines of code with this library, which seems good, but I'm stuck at one point.
我用这个库测试了几行代码,这看起来不错,但是我只停留在一点。 When running my app, Eclipse prints :
在运行我的应用程序时,Eclipse会打印:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at winterwell.jtwitter.InternalUtils.asMap(InternalUtils.java:170)
at winterwell.jtwitter.Twitter.getStatus(Twitter.java:1646)
at Twittshader.main(Twittshader.java:34)
If you want to see the code (oauthClient and twitter objects are declared, I don't think the problem comes from these) : 如果您想查看代码(声明了oauthClient和twitter对象,我认为问题不在于这些):
oauthClient.authorizeDesktop();
String v = oauthClient.askUser("Please enter the verification PIN from Twitter");causes that.
oauthClient.setAuthorizationCode(v);
String[] accessToken = oauthClient.getAccessToken();
// Works through all the program but crashes at this point
System.out.println(twitter.getStatus("ShadeosIsaac"));
twitter.setStatus("Running some tests");
I really don't know why it is crashing. 我真的不知道为什么它崩溃了。 I'm pretty sure it is quite a simple thing, but I'm not sure what to do.
我很确定这是一件很简单的事情,但是我不确定该怎么做。 Ideas ?
想法?
Can I ask: What version of the JTwitter jar do you have? 我可以问一下:您有什么版本的JTwitter jar?
You can find this with: System.out.println(Twitter.version);
您可以通过以下方式找到它:
System.out.println(Twitter.version);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.