黑莓的Facebook的NoClassDefFoundError [英] Blackberry Facebook NoClassDefFoundError

查看:151
本文介绍了黑莓的Facebook的NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能做一些愚蠢的,但我试图访问Facebook的BB功能失败了。这里的code(从提供的FB样品code直取):

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);

据翻倒在Facebook上FB ......行。

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

任何指针的人?

推荐答案

抓住所有的源 - 不更改任何包名 - 拖放一个BB项目的trunk

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.

这篇关于黑莓的Facebook的NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆