开发者

can't use DecimalFormat class within Eclipse

i am developing a blackberry project through the latest eclipse IDE. i am wanting to use the DecimalFormat class, however, i have noticed that eclipse doesn't recognize this class. Even if i change the JDK compliance level to 1.5, the p开发者_StackOverflowroject rebuilds fine but it still won't recognize it (so you still see the class underlines with red lines). Even if you were to attempt to import the class from the java.text package, eclipse doesn't recognize that package and simply says "the import java.text cannot be resolved".

so what am i doing wrong? or am i just stuck accepting the fact that a blackberry project will NEVER recognize certain java classes?

thank you in advance. good day.

ac


DecimalFormat is not part of the BlackBerry API

BlackBerry 4.5 API

You are going to need to use MessageFormat instead


Re-read my answer to your related question here. J2ME is a subset of J2SE so there will be many classes missing, such as the DecimalFormat class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜