blackberryjava-meblackberry-simulatorblackberry-eclipse-pluginblackberry-maps

MapAction.setCenterAndZoom(...) throws NoClassDefFoundException on 9780


this is a little weird to me, When I center the map with MapAction.setCenterAndZoom(...) or MapDimensions.setCenter(...) on both BB 9780 Device and Simulator, it throws a NoClassDefFoundException but when I try the same code on 9930 simulator it works fine. I've even tried another code (MapActionDemo) on 9780, it thrown the same exception. I also checked the application permissions and they were all fine. so, can you please tell me what I'm missing here?


Solution

  • Per API documentation, MapAction.setCenter... appears available only since version 7.0. This is most likely reason why BB 9780 device and simulator fail to run it while 9930 executes successfully.

    As far as I can tell there is a chance to make your code work if you hack method names to setCentre... instead of setCenter...

    references