Skip to main content



      Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Problems with preverification
Problems with preverification [message #31120] Thu, 11 June 2009 09:48 Go to next message
Eclipse UserFriend
I transferred a project from netbeans to eclipse where the source worked
without problems. Now I have a bunch of weird preverification problems.


1.) Error preverifying class ... (No description of the problem).

2.) Type java.lang.String Error preverifying class java.lang String. (No
further description and also NO PATH, so I have absolutely no idea where
to search for the problem.)

I tried to comment out some String references. After that, I had two more
error descriptions in my problems view. After uncommenting, there where 4
more errors or so, so the behavior is absolutely odd. After cleaning the
project, everything is ok again (the 4 additional errors are gone)

3.) public class MathUtils {

public static float round (float unrounded, int decimals) {
float less = (float) (Math.floor(unrounded * (10 * decimals)) /
(10f * decimals));
if ((less + 0.5f) > unrounded) {
return (float) (Math.ceil(unrounded * (10 * decimals)) / (10f
* decimals));
} else {
return less;
}

return unrounded;
}

public static int truncate(float value) {
//return new Float(Math.floor(value)).intValue();
return new Float(value).intValue();
}
}

This class has 2 preverifying errors in with CLDC 1.0. When you uncomment
the lines in error, a preverification error for the class is still
displayed which is definitely wrong (It works, when you clean the project,
but that shouldn't be necessary).

I know how to resolve most of the problems but I think you should know
that there a lot of things to do that preverification really works and
wanted to tell you some of the problems. Maybe I also did something wrong,
so I decided not to create a bug report for all that stuff.

Regards,

Wolfgang
Re: Problems with preverification [message #31155 is a reply to message #31120] Thu, 11 June 2009 10:59 Go to previous message
Eclipse UserFriend
Hi Wolfgang

It appears to me you are having problems with your runtime configuration.
Please, try the following.

1) Re-import your favorite SDK
2) On the application descriptor editor, add a new runtime configuration.
2.1) select one device from the newly installed SDK, that supports CLDC 1.1
3) remove all previous runtime configurations
4) save the application descriptor
5) build your package

It should work.

Please, let me know if it fixed your issue.
Re: Problems with preverification [message #573995 is a reply to message #31120] Thu, 11 June 2009 10:59 Go to previous message
Eclipse UserFriend
Hi Wolfgang

It appears to me you are having problems with your runtime configuration.
Please, try the following.

1) Re-import your favorite SDK
2) On the application descriptor editor, add a new runtime configuration.
2.1) select one device from the newly installed SDK, that supports CLDC 1.1
3) remove all previous runtime configurations
4) save the application descriptor
5) build your package

It should work.

Please, let me know if it fixed your issue.
Previous Topic:Problems with preverification
Next Topic:hover issue with MTJ
Goto Forum:
  


Current Time: Wed Mar 12 00:59:43 EDT 2025

Powered by FUDForum. Page generated in 0.03418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top