Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
raphaelharboun
Posts: 33
Registered: ‎08-19-2010
My Device: Not Specified

facebook SDK + 100 classes limits

Hello everybody,

 

I have the facebook SDK sources added into my application,
the thing is that there are 68classes in the SDK, and my application currently contains 40 classes.

 total classes > 100

 

So when i want to package my app, i have a 

I/O Error cannot run program JAR

 

If i remove the Facebook SDK sources, the application packages correctly.

 

Is there an other way to use the facebook SDK ?

I read that it was pretty difficult to use third party library on BB, does anyone have a detailed solution ?

 

Thanks

Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: facebook SDK + 100 classes limits

there is no limit of 100 classes. my generated webservice-classes are 458 alone, without counting my own.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
raphaelharboun
Posts: 33
Registered: ‎08-19-2010
My Device: Not Specified

Re: facebook SDK + 100 classes limits

hi,

 

i'm reffering to this post

http://supportforums.blackberry.com/t5/Java-Development/why-cause-more-then-100-compiled-classes-pac...

 

if it's not the 100 limits, what can cause my packaging process to crash only by adding some classes.

 

I'm not even using them yet, they are just in a package, if i delete the package everything works great.

 

I'm compiling with the Eclipse pug in and BB 5.0

Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: facebook SDK + 100 classes limits

ok, the linked thread talks about command line length, dunno how you could check that. is your project maybe in a lengthy folder structure?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
raphaelharboun
Posts: 33
Registered: ‎08-19-2010
My Device: Not Specified

Re: facebook SDK + 100 classes limits

The path to the sources is like c:/user/raphael/workspace/project/src

 

and don' think it's particularly long...

 

OHhhh and Great Thing  =>

 

i removed the facebook SDK and continued to developp my app without the facebook fonctionnality, and i just added a private class in one of my classe and BAM

 

The same error !

 

if i remove the private class, it works fine !

 

Need help on this one !!!

 

Thanks

New Member
davidvanvo
Posts: 3
Registered: ‎01-13-2011
My Device: Not Specified

Re: facebook SDK + 100 classes limits

Not sure on the validity of the 100 limit, but I too ran into this problem. I have the Facebook SDK as its own Library and it works.

Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: facebook SDK + 100 classes limits

I can tell you... some of the apps I am working on have in excess of 400 classes... they work fine.