Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2014
    Posts
    1
    Rep Power
    0

    Default How do I package a Java Application with JARS?

    Hi

    I have created an application that I wish for people to be able to run from command line, like so:

    java myApp [filename]

    Problem is my application uses functions from 3 .Jar files.

    Here is how my folder(Assume it is called MyApplication) currently looks:

    Application(folder)(contains .class files + source code)
    jar1.jar
    jar2.jar
    jar3.jar
    Manifest.txt

    I understand I need add some information to the Manifest.txt file but I am struggling in adding stuff to it in the correct format.

    Assuming the above folder is called my MyApplication, could someone tell me what I need to put in the Manifest and how to build it all as a Jar File.

    Thank you

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,317
    Rep Power
    25

    Default Re: How do I package a Java Application with JARS?

    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,891
    Rep Power
    5

    Default Re: How do I package a Java Application with JARS?

    Quote Originally Posted by yazoo178@hotmail.co.uk View Post

    I have created an application that I wish for people to be able to run from command line, like so:

    java myApp [filename]
    Impossible, they'll have to run it like:

    java -jar myapp.jar

    assuming its an executable jar. If you want to make it easier to run your stuff you're better off providing a shell script.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 8
    Last Post: 12-23-2012, 05:53 PM
  2. EJB Java Application Client jars needed
    By Fra in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 05-07-2012, 01:42 AM
  3. For All java Sw and jars in one place
    By manideep.d132 in forum Reviews / Advertising
    Replies: 0
    Last Post: 08-07-2011, 07:45 PM
  4. Java Packages/Jars
    By Silentstormz in forum Advanced Java
    Replies: 4
    Last Post: 09-14-2008, 07:58 PM
  5. Replies: 0
    Last Post: 08-19-2008, 04:44 PM

Posting Permissions

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