Results 1 to 3 of 3

Thread: packaging files

  1. #1
    ashish9590 is offline Member
    Join Date
    Feb 2010
    Posts
    7
    Rep Power
    0

    Default packaging files

    hey..i hav developed a swing application which can be run by double clicking the jar file
    i have 3 libraries (user defined) imported to the file
    how can i package all the files into a single jar and deploy it so that the end user will use it just by double clicking..
    thnq

  2. #2
    sathishsengg is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Default

    Orginal Quote
    hey..i hav developed a swing application which can be run by double clicking the jar file
    i have 3 libraries (user defined) imported to the file
    how can i package all the files into a single jar and deploy it so that the end user will use it just by double clicking..
    thnq
    Create Manifest file
    File Name:AnyName.anyext
    Java Code:
    Main-Class: packagename.classname
    ----------------------------
    Rules to Create Manifest file
    1) M and C Must be caps
    2) after colon (: ) must insert space
    3) New line after classname.

    jar command
    jar -cmf ManifestFile.mftext anyname.jar packagename\*.class otherfolder\*.*

    Now you can see jar file double click it.

  3. #3
    ashish9590 is offline Member
    Join Date
    Feb 2010
    Posts
    7
    Rep Power
    0

Similar Threads

  1. Packaging all files into a single executable .jar
    By ichwar in forum New To Java
    Replies: 5
    Last Post: 01-27-2010, 01:31 AM
  2. packaging programs for installation
    By buston01 in forum NetBeans
    Replies: 0
    Last Post: 01-25-2010, 12:07 PM
  3. Rmi+packaging
    By skliz4rel in forum Networking
    Replies: 0
    Last Post: 01-06-2010, 07:56 PM
  4. Best practice for packaging add-ons
    By Goose in forum Advanced Java
    Replies: 2
    Last Post: 08-05-2009, 10:51 PM
  5. Packaging and accessing data files
    By todd in forum Advanced Java
    Replies: 1
    Last Post: 08-01-2007, 12:27 AM

Posting Permissions

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