You Are Here:

Community: Developer Discussion Boards

#1 Old error"invalid constant pool entry"or how to use floatpointvariables in j2me - 2003-02-08, 18:08

Join Date: Mar 2003
Posts: 2
schnuerbein
Offline
Registered User
if i want to run my midp-application i always get the message "invalid constant pool entry" what does this mean. i suppose that it's because of the double-variables. can somebody tell me how to solve this problem or how i can use floatpoint variables in my midp-app.
thanks
Reply With Quote

#2 Old RE: error"invalid constant pool entry"or how to use floatpointvariables in j2me - 2003-02-08, 23:36

Join Date: Mar 2003
Posts: 38
atomictag
Offline
Registered User
Hi schnuerbein,
you can't use floating-point variables in MIDP apps.
You can use fixed-point math instead, as described in the following posts on this forum:

"Floating point math"
http://nkn.forum.nokia.com/qa/threadshow.cfm?msg=30098547037&MsgBoard=5844401565639302&idDispSub=3665071750056882

"Floating point calculations"
http://nkn.forum.nokia.com/devrel/threadshow.cfm?msg=87007088582&MsgBoard=5844401565639302&idDispSub=3665071750056882

Hope this can help.
regards

Davide
<AtomicTag.com/>
Reply With Quote

#3 Old RE: error"invalid constant pool entry"or how to use floatpointvariables in j2me - 2003-02-09, 09:16

Join Date: Mar 2003
Posts: 258
Location: Moscow/Russia
Send a message via ICQ to henson2K
henson2K
Offline
Regular Contributor
I fact, you can always use 3rd party classes. For example
http://henson.newmail.ru -> J2ME section -> henson.midp.Float class
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia