Blackberry Facebook NoClassDefFoundError

寵の児 提交于 2019-12-20 07:31:17

问题


I'm probably doing something dumb but my attempts to access the BB Facebook functionality are failing. Here's the code (taken straight from the FB sample code provided):

 String NEXT_URL = "http://www.facebook.com/connect/login_success.html";
 String APPLICATION_ID = "app_id here";
 String APPLICATION_SECRET = "secret_key here";
 String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS;

 ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
 Facebook fb = Facebook.getInstance(as);

It falls over on the Facebook fb ... line.

Any pointers anyone?


回答1:


Grab all of the source - don't change any package names - and drop the trunk on a BB project.

Compile and run - it's a namespace problem.

It's a mistake to trust the suggested jar.



来源:https://stackoverflow.com/questions/8882973/blackberry-facebook-noclassdeffounderror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!