11-17-2011 10:13 AM
I've built a WebWorks extension in Java which creates a page containing a MainScreen with a HorizontalFieldManager at the top and a VerticalFieldManager below it. If I build an application with this extension using SDK 2.2 (which contains the updated net_rim_api.jar) then on launch of the application in an OS 5 simulator I get a runtime exception of "Class net.rim.device.api.ui.ScrollView not found." I am not directly using ScrollView in my extension as I am only using API available in OS 5.
If instead of using the net_rim_api.jar provided with SDK 2.2, I use the net_rim_api.jar from the OS 5 JDE then my application builds and runs fine on OS 5. I'm guessing the fact that ScrollView was inserted in the inheritance chain of VerticalFieldManager/HorizontalFieldManager for OS 6 is causing the issue since the net_rim_api.jar provided with SDK 2.2 is based off of OS 7.
Is there anyway around this with the single net_rim_api.jar provided with SDK 2.2? I'm still of the belief that it would have been a better strategy to provide multiple net_rim_api.jar in the SDK and then use the build to conditionally compile based on the applications desired targets (via config.xml flag).
10-23-2012 09:48 AM
I wonder if you ever got a solution to this situation. I got the same error when compiling an app in webworks SDK 2.2 but I'm not using anything related to scroll view; It happens when I include the payment API.
Thanks in advance.