Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Visitor
Posts: 1
Registered: ‎03-20-2011
My Device: curve 8310

loader.exe error - comparing float values

Using: BB JDE 5.0.0.25
on BB 8310 Curve - 4.5.0.182
Hi, code imports javax.microedition.location.*;
Modified gpsdemo program that comes with the JDE
Trying to check if speed is greater than 1.0
second check is to see if speed is less than 1.0
float speed = location.getSpeed();

if (speed >= 1.0)  

 

/*compiles, but cannot be loaded onto device -
A fatal error has occurred while updating your device's software. Please try again.Unspecified error encountered [J:0x00000024] */

if (speed >= 1.0E1)

/*compiles and loads onto the device, but not accurate enough - this is really if speed >= 10  i need to check for speeds greater than 1*/

 

 

if (speed >= 0.1E1)

/* compiles, but loader.exe will not load onto device - would be 1.0 and working properly but loader yields
A fatal error has occurred while updating your device's software. Please try again.Unspecified error encountered [J:0x00000024] */

 

 

So, i need basically to check for speeds gt 1.0 (ie: 1.1 or 99.999) while allowing the program to still load onto the deice

 

update: if (speed >= 0.9E1)

this works..weird that 1.0E1 does not work

would still like to know why and any work arounds

 

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: loader.exe error - comparing float values

Welcome to the forums

 

Loading software compiled using JDE 5.0 on a OS 4.5 phone is not supported. 

 

The way it works in BlackBerryLand is that you must compile with an OS level that is same or older (i.e. less than) the version on the phone.  So you should recompile your application using OS 4.5 tooling, and I suspect this problem will be resolved.

 

Good luck!