×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    8

    JAR and JAD into a single file. Possible?

    Hi there,

    I have a java application developed by a third-party. It's a client that connects to our server. They gave me a JAR and a JAD.
    In the JAD file, appart of the usual stuff, they put there more properties, like user and password.

    The idea is that when a user wants to download that application, I have to send him the JAR and the JAD (this one updated with the users user and password).

    Is it possible to send the users a single file, instead of two? like a bundle or something...

    many many thanks!!

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: JAR and JAD into a single file. Possible?

    Instead of bundling Jar and Jad files together, you could bundle, within the Jar file, a customized resource file. Since the Jar file is a common zip archive, you can easily add/modify its files from server side, so allowing each user to download a unique Jar version.

    Pit

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    8

    Re: JAR and JAD into a single file. Possible?

    Hey thanx for the response Pit,

    but not sure if that would work or not. The JAD file is needed not only because it contains user-password, but also because it's needed in order to set the app-permisions without problems, like "network access -> never ask" etc.

    ciao!

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: JAR and JAD into a single file. Possible?

    Well, then you have no other choices than make users download the JAD file, and then the JAR one..

    Pit

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    8

    Re: JAR and JAD into a single file. Possible?

    hey, I found the way

    there's no need to bundle anything.
    just keep the jar and the jad files on the server. Add the new mime types in the server's configuration (for the jad and jar files) and then provide a link to the user pointing to the JAD, such as

    http://server/whatever/appli.jad

    and by following that link the users will be able to download the app to their phones.

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: JAR and JAD into a single file. Possible?

    Yes, this is the standard way of distributing J2me midlets when JAD is required. Sorry for not having better specified in my previous replies..

    Pit

Similar Threads

  1. sign a jar , jad : File R Allow access
    By tgkprog@gmail.com in forum Mobile Java Networking & Messaging & Security
    Replies: 10
    Last Post: 2007-09-13, 12:51
  2. Making DRM content with jar and jad file
    By ilanchezhiank in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2007-08-06, 06:45
  3. 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
  4. JAD or JAr problem ...file for 6610 nokia (40 series)
    By farhanx in forum Mobile Java General
    Replies: 2
    Last Post: 2005-11-11, 04:52
  5. Installing the JAR or JAd file on nokia 7650
    By winqvist70 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2003-05-28, 09:30

Posting Permissions

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