Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I compile Java source code for a MIDP application?

0
Posted

How do I compile Java source code for a MIDP application?

0

The usual method is as follows: • Compile using an ordinary Java compiler • Convert the classes to CLDC format • Create a manifest file containing configuration information • Package the classes and manifest into a JAR file, including any other required files such as images and sounds The JAR file can then be deployed to the device, or run on an emulator (see below). When compiling the source code, it is helpful to tell the compiler not to compile against the standard J2SE class library, because most of it doesn’t exist in CLDC. Instead, the compiler should refer only to CLDC and MIDP classes. You should be able to get JAR files of these classes from vendors of mobile devices, or use the archives included with Sun’s Wireless Toolkit.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.