Results 1 to 5 of 5

Thread: Executable JAR

  1. #1
    bugger is offline Senior Member
    Join Date
    Nov 2007
    Posts
    111
    Rep Power
    0

    Default Executable JAR

    I have a package and want to create executable JAR for it.

    Please advice. Any reference tutorial will be highly appreciated.

    Chao.

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default

    You need to add a manifest file when you creating the jar file. This manifest file should tell what is the main class of your jar file.

  3. #3
    ravian is offline Senior Member
    Join Date
    Nov 2007
    Posts
    115
    Rep Power
    0

    Default

    manifest file is also a text file. Am I supposed to follow some syntax?

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default

    An example your manifest can be something like:

    Java Code:
    Manifest-Version: 1.0
    Created-By: 1.6.0 (Sun Microsystems Inc.)
    Main-Class: packagename.classname
    The Main-Class tells which class is the entry point to you application.

  5. #5
    ravian is offline Senior Member
    Join Date
    Nov 2007
    Posts
    115
    Rep Power
    0

Similar Threads

  1. executable
    By smooth in forum New To Java
    Replies: 4
    Last Post: 06-14-2008, 05:12 PM
  2. Executable Java
    By eva in forum New To Java
    Replies: 3
    Last Post: 12-30-2007, 11:38 PM
  3. call executable jar from html/jsp
    By Zahari in forum JavaServer Pages (JSP) and JSTL
    Replies: 6
    Last Post: 12-06-2007, 12:00 AM
  4. Generate an executable file
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:30 AM
  5. Executable Application, use JCreator
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 06:03 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
  •