
Originally Posted by
grahamhughes
You cannot download more code into your application after installation. An application cannot span multiple JARs. Also, you cannot convert a byte[] into a Class, as you can with J2SE (using a ClassLoader), because there are no ClassLoaders in CLDC.
You can use MIDlet.platformRequest(), with the URL to a JAD, to download and install another application. However, this will be a separate application, and sharing data between applications (in separate JARs) is not easy. You can (on MIDP-2.0 and later) share record stores (RMS) between applications, but this is subject to security restrictions, and on some devices it might require that your application be signed.
Graham.