views:

177

answers:

4

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 project 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

+2  A: 

DecimalFormat is not part of the BlackBerry API

BlackBerry 4.5 API

You are going to need to use MessageFormat instead

Michael B.
A: 

When developing for JME you should use JDK compliance level to 1.4.

Daniel Moura
A: 

The BlackBerry API does not contain the java.text package...

Fortega
A: 

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.

Marc Novakowski