Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
05-15-2012 05:25 PM
I'm new to Blackberry development and have come across something I don't understand. I have an application that I have been working on it supports Blackberry OS 5 to 7.1 and works on them all apart from OS 6. For some strange reason I get:
Error starting Foo: Class 'net.rim.device.api.system.WLANListener' not found
on Blackberry OS 6 only! There is no OS specific code (as far as I know). This is after I have cleaned both code and Simulator (using Eclipse) and signed the code. Most of the time the application refuses to install on the OS 6 device - of course, it works perfectly fine on other OS versions. What could be causing this?
Debug in simulator is showing -
AM: Error starting Foo: Class 'net.rim.device.api.system.WLANListener' not found.
[0.0] VM:LINK Foo
[0.0] Class 'net.rim.device.api.system.WLANListener' not found.
[0.0] [0.0] Linker error: 'VerifyError' for Foo
[0.0] VM:CLRCv=0 [0.0]
I did try to implement something very simple that also used WLANListener and it appeared to work (or at least not error).
Solved! Go to Solution.
05-15-2012 08:31 PM
This is unusual. I take it you are compiling the code in OS 5.0 and using it in the later level Simulators?
Just a quick question. Why are you using LANListener. it doesn't actually give yo anything does it. Yo ureally want to implement WLANConnectionListener instead.
05-16-2012 04:29 AM
Thanks for the reply. For OS 5, I compile the code with JRE System Library 5 in Eclipse, with the Eclipse plugin and it works on an OS 5 device or simulator fine. The same for OS 7 and OS 7.10 (using their respective JRE System Libraries). But when I compile with JRE System Library 6 - it gives me this error both in the simulator and in the device. I have also tried uninstalling and re-installing the Blackberry OS 6 SDK. It seems like I am linker errors, not sure how or why.
I am not actually implementing WLANListener - I am implementing net.rim.device.api.system.WLANConnect
I have also tried using BBSAK to make sure that the COD has been removed and that the new one is the correct OS 6 COD as opposed to the ALX file just in case.
05-16-2012 05:23 AM
Sounds like a bug to me then.
Can you quickly make a very small application that demos the problem? That will make it easy for others to test. Also might be useful to note the Simulator and device, and associated OS levels, that demonstrate the problem.
You might like to try the OS 5.0 compile in OS 6.0 Simulator to see if that gets you round the problem in the short term.
05-16-2012 05:42 AM
05-16-2012 08:07 AM
05-16-2012 08:45 AM
I think I understand correctly. I just wanted to know what Simulator you were having problems with so that I could download that Simulator and see if I can replicate it missing the
Do you think that is a worthwhile thing to me to do?
05-16-2012 08:51 AM
05-16-2012 02:04 PM
OK, now I'm completely baffled..... I have implemented a smaller app with the same connection logic as the other app - and it works!
The main app still doesn't work with OS 6 - ONLY. OS 5/7/7.10 all fine just not OS 6 with the same error on the device and simulator even when cleaned.
What on Earth could cause exactly the same code to be OS specific like that?