×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    11

    Exclamation Do you think that dynamic jar loading is possible ??

    Hi everyone,

    I have a final thesis and it is nearly done but my mentor wanted me to research about dynamic jar loading as a last step. The requirement is ; we have a mobile application it has some modules like tourism or such things and after application get started, the user selects the module that he wants, so after selection, application must connect to server to download the jar then i have to load it dynamically. The application already connects to my server and the rest is downloading the code, i think that there will be no problem at this step but i dont think that i can use jar file such this way. Do you have any idea??

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Do you think that dynamic jar loading is possible ??

    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.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Do you think that dynamic jar loading is possible ??

    I have a final thesis and it is nearly done but my mentor wanted me to research about dynamic jar loading as a last step. The requirement is ; we have a mobile application it has some modules like tourism or such things and after application get started, the user selects the module that he wants, so after selection, application must connect to server to download the jar then i have to load it dynamically. The application already connects to my server and the rest is downloading the code, i think that there will be no problem at this step but i dont think that i can use jar file such this way. Do you have any idea??
    You can have small start or setup application in the same name as your final project as version 0.5 (often called stub app). This application will let the user select the required options based on which you do a plaform request to the server and get the complete application OTA which updates this existing app on the device.

    thanks,
    ~Amitabh

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    11

    Re: Do you think that dynamic jar loading is possible ??

    Quote Originally Posted by grahamhughes View Post
    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.
    I see, it seems impossible. Thank you very much.

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    11

    Re: Do you think that dynamic jar loading is possible ??

    Quote Originally Posted by im2amit View Post
    You can have small start or setup application in the same name as your final project as version 0.5 (often called stub app). This application will let the user select the required options based on which you do a plaform request to the server and get the complete application OTA which updates this existing app on the device.

    thanks,
    ~Amitabh
    Thank you for the idea but I think this is not the exact thing that my mentor wants. Thanks again.

Similar Threads

  1. Jar loading question
    By nickfisher in forum Mobile Java General
    Replies: 8
    Last Post: 2010-03-06, 09:46
  2. Error loading connection when obfuscation high?
    By ejakkk in forum Mobile Java General
    Replies: 8
    Last Post: 2009-06-26, 12:54
  3. MBM image is not found
    By tamhanna in forum Symbian
    Replies: 14
    Last Post: 2009-04-20, 12:44
  4. jar created in NDS 2.2 is not loading in mobile
    By kabeer_2k5 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-10-11, 06:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×