06-18-2012, 07:42 AM
Join Date: Jun 2012
Post Thanks: 1
Thanked 0 Times in 0 Posts
| | Blackberry Location.getBearing NoClassDefFound
Please Login to Remove!
I have a Blackberry 9800 V22.214.171.1248.
and Eclipse with Blackberry jdk 7.0
I developed GPS software which includes:
public class LocationListenerImpl implements LocationListener
It all works fine.
But as soon as I include the statements:
double d = LocationInfo.getBearing(lat, lon, nl, ew);
All argument are of type double.
and in the application class
_locationProvider.setLocationListener(new LocationListenerImpl(_screen), 2, -1, -1);
catch (NoClassDefFoundError e)
I get the NoClassDefFound exception.
In the constructor I have
which doesn't provide this exception.
So, the getBearing call is causing the problem.
Can somebody help me, please?