Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2010
    Posts
    23
    Rep Power
    0

    Smile How to make a jar file?

    Can any one please help me making a jar file, i have tried internet codes they work but jar always give me manifest file loading error. Thank you for your kind regards.

  2. #2
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

  3. #3
    mConfused is offline Member
    Join Date
    Apr 2010
    Location
    Manchester
    Posts
    5
    Rep Power
    0

    Default

    Hi there. Have you tried using Netbeans IDE? :)

  4. #4
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Lightbulb

    Quote Originally Posted by greatmajestics View Post
    Can any one please help me making a jar file, i have tried internet codes they work but jar always give me manifest file loading error. Thank you for your kind regards.
    MF file should contain a main class ref. So if you not sure you can always open it and check its main class notes :)

  5. #5
    programmer_007's Avatar
    programmer_007 is offline Senior Member
    Join Date
    Aug 2009
    Posts
    125
    Rep Power
    0

    Default

    google "how to create jar files" .. there is a command called "jar" with some switches.

  6. #6
    rsjava24 is offline Member
    Join Date
    Jan 2010
    Posts
    23
    Rep Power
    0

    Default

    Hi! I also ask how to run java file into a JSP? Thank you.

  7. #7
    rochardgems is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default

    @Greatmajestics i think its really easy to create the jar file,well its very to mentioned very steps in the post so just gone through these site its really helps you a lot."http://java.sun.com/docs/books/tutorial/deployment/jar/build.html".

  8. #8
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default

    Quote Originally Posted by greatmajestics View Post
    Can any one please help me making a jar file, i have tried internet codes they work but jar always give me manifest file loading error. Thank you for your kind regards.

    if you have the jdk installed on your machine an assuming you are just above your project path named myApp invoke the command-line

    jar -cf MyJar.jar myApp

    then the content of myApp will be archived in MyJar.jar and also a MANIFEST.MF file will be created. for more details about jar see here

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by greatmajestics View Post
    Can any one please help me making a jar file, i have tried internet codes they work but jar always give me manifest file loading error. Thank you for your kind regards.
    Why don't you read the Suns' tutorial on this. Which is the best you can find.

    Creating a JAR File (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)

Similar Threads

  1. [Help] Make .exe file from exe4j
    By dawp in forum New To Java
    Replies: 2
    Last Post: 12-14-2009, 02:01 PM
  2. Creating Make File
    By kiki2009 in forum New To Java
    Replies: 7
    Last Post: 07-11-2009, 01:20 PM
  3. how to make header file?
    By rams in forum New To Java
    Replies: 9
    Last Post: 10-24-2008, 08:16 AM
  4. How do you make a jar file
    By alex_cunningham in forum New To Java
    Replies: 3
    Last Post: 07-15-2008, 03:56 AM
  5. How to make a web application as .exe file
    By madhusudhangovindu in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 03:58 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
  •