BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-18-2012, 07:42 AM   #1
hdehaan
New Member
 
Join Date: Jun 2012
Model: 7800
PIN: N/A
Carrier: KLM
Posts: 3
Default Blackberry Location.getBearing NoClassDefFound

Please Login to Remove!

Hello,
I have a Blackberry 9800 V6.0.0.668.
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

try
{
_locationProvider.setLocationListener(new LocationListenerImpl(_screen), 2, -1, -1);
}
catch (NoClassDefFoundError e)
{
e.printStackTrace();
}


I get the NoClassDefFound exception.
In the constructor I have

LocationInfo.setLocationOn();

which doesn't provide this exception.

So, the getBearing call is causing the problem.

Can somebody help me, please?
Offline  
Old 06-18-2012, 08:24 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Blackberry Location.getBearing NoClassDefFound

You cannot compile under V7 and deploy under OS 6.

Your compiler must be <= the target OS level.
Offline  
Old 06-18-2012, 08:53 AM   #3
hdehaan
New Member
 
Join Date: Jun 2012
Model: 7800
PIN: N/A
Carrier: KLM
Posts: 3
Default Re: Blackberry Location.getBearing NoClassDefFound

Thank you.
Indeed setting the JDK to 6, and the getBearing is not supported.
Do you have any idea how I can implement the getBearing functionality?
Offline  
Old 06-18-2012, 10:12 AM   #4
Dubdub
Appleinator
 
Dubdub's Avatar
 
Join Date: Nov 2005
Location: New Hampshire
Model: App6+
OS: AJBR549
PIN: Ask
Carrier: ATT & Verizon
Posts: 20,038
Default Re: Blackberry Location.getBearing NoClassDefFound

Please do not double post.
__________________
-->>BB FAQ

-->>Stinsonddog's Tip Site!

-->>Twitter


If someone helps, tell them by clicking the Thanks button.!!
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Blackberry Location.getBearing NoClassDefFound
Thread Thread Starter Forum Replies Last Post
HOWTO: Use BlackBerry on Generic NON-BlackBerry Data Plan Mark Rejhon BlackBerry Network 95 05-20-2018 07:58 AM
Perform a cutover to another BlackBerry Enterprise Server in IBM Lotus Domino hdawg BES Admin Corner 3 04-25-2008 09:47 AM
New to BES admin , need help with messages. bigwig BES Admin Corner 5 10-17-2007 10:59 AM
BES 4.1 SP2 for Microsoft Exchange - Now Available jibi BES Admin Corner 51 01-10-2007 10:30 AM
BES Domino 4.0 SP2 rsun BES Admin Corner 12 08-25-2005 01:27 PM


LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW picture

LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW

$396.99



new In Box Siemens 6GK5208-0BA10-2AA3 PLC Module 6GK5208-0BA10-2AA3 PLC picture

new In Box Siemens 6GK5208-0BA10-2AA3 PLC Module 6GK5208-0BA10-2AA3 PLC

$377.27



Siemens Ruggedcom RS900 Ethernet Switch 6GK6090-0AS23-0BA0-Z picture

Siemens Ruggedcom RS900 Ethernet Switch 6GK6090-0AS23-0BA0-Z

$479.00



Siemens 6ES7138-4FA05-0AB0 SIMATIC DP, ET200S 6ES7 138-4FA05-0AB0 picture

Siemens 6ES7138-4FA05-0AB0 SIMATIC DP, ET200S 6ES7 138-4FA05-0AB0

$203.23



Lot Of 10 Siemens Q120DFN Arc-Fault/Ground-Fault Dual Function Circuit Breaker ✅ picture

Lot Of 10 Siemens Q120DFN Arc-Fault/Ground-Fault Dual Function Circuit Breaker ✅

$400.00



6ES7231-5PF32-0XB0 Siemens 6ES7 231-5PF32-0XB0 New And Original Fast Shipping picture

6ES7231-5PF32-0XB0 Siemens 6ES7 231-5PF32-0XB0 New And Original Fast Shipping

$313.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.