Community
Participate
Working Groups
JavaME CLDC applications needs to be compiled to be compatible with either CLDC 1.0 or CLDC 1.1. JDT compiler supports the CLDC 1.1 compatibility already. This is a request to support CLDC 1.0 and preverification on the JDT compiler. Right now MTJ project runs a preverifier (from the emulator environment) after the Java build is completed. The experience of this solution is not good for several reasons. First running an external builder causes problems to users especially on large projects. Preverifiers do not report the error line numbers therefore the error markers can not be placed correctly. CLDC compilation and preverification support on JDT would greatly enhance the performance and experience of MTJ project.
Do you have a link to a public specification (with a license compatible with EPL) about what needs to be done by the compiler for CLDC1.0 compilation?
Somehow I had the feeling you would ask this :) JSR 30 http://jcp.org/en/jsr/summary?id=30 defines CLDC 1.0 differences to Java Language specification also explains the off-device preverification. JSR 139 http://jcp.org/en/jsr/summary?id=139 defines the same for CLDC 1.1. However, I am not able to asses if they can be used for an EPL compatible compiler implementation.
Olivier, if the CLDC specification is not suitable, I think the book "Programming wireless devices with the Java2 Platform" does an OK job explaining the class format. Google books also has the related section on the following link http://books.google.com/books?id=Zs9cEJ26gOMC&lpg=PP1&dq=programming%20wireless%20devices&pg=PA46#v=onepage&q&f=false
Closing as CLDC 1.0 is not used anymore.