×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    3

    Accessing Jar file within the Midlet

    Does anyone know whether it is possible to access the complete jar file of the Midlet that is running? The reason for wanting to do this is so that the Midlet can be sent via Bluetooth within the Midlet to another mobile device, thus spreading it in a viral distribution.

    Any help greatly appreciated.

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Accessing Jar file within the Midlet

    Not possible.
    You could store one copy of the MIDlet JAR inside the "running" JAR, and send that to another phone. Of course that JAR does not contain the JAR inside anymore, so not exactly viral distribution....

    Hartti

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    3

    Re: Accessing Jar file within the Midlet

    Thanks Hartti for your reply.

    I feared that may be the case. I had already thought of your idea but as you say it is not viral. I understand J2SE allows the creation of JAR files and so it may be possible to re-create the jar file at run-time but this doesn't help with J2ME which doesn't have a JarOutputStream capability. Does anyone know of any source code to replace that functionality on J2ME ?

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Accessing Jar file within the Midlet

    Well, there is no access to the relevant files (except the resource files inside the JAR) so you just cannot achieve this with Java ME.

    Hartti

  5. #5

  6. #6
    Registered User
    Join Date
    Oct 2007
    Posts
    3

    Re: Accessing Jar file within the Midlet

    Traud

    This looks very interesting and may just do the trick

    Thank you very much for your help


    BF

Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  3. DRM for sending jar file via Bluetooth
    By yogesh.bhople in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2007-03-21, 09:11
  4. can we get the source file from jar file..
    By bb_sathya in forum Mobile Java General
    Replies: 6
    Last Post: 2005-12-28, 13:14
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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