Re: Cannot create an instance of Location.Criteria class - lapi.jar MIDP 2.0 J2ME



"Daniel Dyer" <dan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:<op.sokp1hmy8kxzwp@dougal>...
> On Fri, 01 Apr 2005 21:47:10 +0100, Roland <roland.weiersmueller@xxxxxxx>
> wrote:
>
> > Hello
> >
> > I am trying to find out the good provider for a kind of GPS program
> > written with j2me midp 2.0 using the location API (lapi.jar) and
> > Eclipse development environment with the plugin 'eclipseME'.
> >
> > I have a very strange phenomena.
> > I try to create an instance of the Criteria class which is part of the
> > Location API (lapi.jar).
> >
> > I can compile it without any problems, the program crashes at runtime.
> > My programm crashes with the following error line:
> > java.lang.NoClassDefFoundError: javax/microedition/location/Criteria
> > The lapi.jar is included in the project and the Criteria class exists.
> >
>
> Looks like a classpath problem, is the lapi.jar included in the classpath
> when you run your app? Are you running on an emulator or an actual
> device? You need to configure your emulator or the manifest in your app's
> jar file to include lapi.jar in the classapth.
>
> OK, that's my token attempt to answer your question ;) the real reason I
> replied is because I'm interested in which device(s) are you planning to
> run on? We've been looking at JSR-179 (the J2ME location API) and it
> seems to be almost universally unsupported by current generation mobile
> phones. It seems to require both CDLC 1.1 for floating point support and
> vendor support for the location API on the device (I may be wrong, my
> colleagues have looked at this in more detail than I have personally). I
> presume you are using some kind of reference implementation in an
> emulator? We are targeting Symbian devices and are having to use C++ to
> retrieve location information because of the lack of JSR-179 support. I'd
> be very interested if you've got it working just with Java.
>
> Dan.
>
>
> P.S. Anybody else think there should be a comp.lang.java.mobile group?

Hi Dan

Thanks very much for your answer.
I think you are right, such special functions are not supportet by the
WTK.
I was reading a little bit more in this direction and I realized that
my phone K700 Sony-Ericsson is not supporting at all the Location API.
I wanted to implement this function instead of buying a GPS reciever
(I do not need the position extremly exact ;)
So I decided to stop my little private project and buying a GPS :))

I would be very much interested how you are doing this on Symbian.
Are you using MobiInfo API? Or is there another API which is providing
cell informations?

I am absolutly your opinion about the mobile newsgroup - this area
became so waste and becomes more more important that it would be very
useful to have an own newsgroup.

Best regards
Roland
.



Relevant Pages

  • Re: WAAS GPS vario?
    ... And GPS chips are showing up everywhere. ... Could be that the hardware to make our theoretical GPS vario will soon ... I've broken my triple probe once and cursed at O-ring ... A development team who can actually provide support and enhancements ...
    (rec.aviation.soaring)
  • Re: Feasibility of using Ada in new development
    ... > If you read my post again, you'll see that I am contrasting GPS to ... > .Net, Eclipse, and Borland tools. ... Ada Core is not charging for the toolset; ... If you feel you don't need support, ...
    (comp.lang.ada)
  • Re: New GPS comming soon/rumors?
    ... > GPS satellite with the new second frequency CA channel is due ... > of the new CA supporting sats goes up I expect people here to start ... > whining about wanting support for it in any new GPS they buy. ...
    (sci.geo.satellite-nav)
  • Re: NOTICE ADVISORY TO NAVSTAR USERS (NANU) 2005081
    ... simple calendar format to which we could all relate more easily, ... actually were required to use gps as much as possible in our jobs. ... CURRENT ADVISORIES AND FORECASTS: ... THE POINT OF CONTACT FOR GPS MILITARY OPERATIONAL SUPPORT IS THE GPS ...
    (sci.geo.satellite-nav)
  • Re: Cannot create an instance of Location.Criteria class - lapi.jar MIDP 2.0 J2ME
    ... written with j2me midp 2.0 using the location API and ... Location API. ... You need to configure your emulator or the manifest in your app's jar file to include lapi.jar in the classapth. ... It seems to require both CDLC 1.1 for floating point support and vendor support for the location API on the device. ...
    (comp.lang.java.programmer)