Results 1 to 4 of 4
  1. #1
    akash1212 is offline Member
    Join Date
    Jun 2009
    Posts
    2
    Rep Power
    0

    Question ceating JAr file without JDK?

    Hi Guys,

    I have all the compiled classes with me. Can I create a jar file without installing the entire JDK on my machine, may be using jar.exe utility.?
    Is there any such possibility ?

    Thanks & Regards,
    Akash Shah.

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    you could just zip it, add a manifest file, and rename to .jar.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  3. #3
    akash1212 is offline Member
    Join Date
    Jun 2009
    Posts
    2
    Rep Power
    0

    Default

    Hey, It worked fine.
    Only one thing, before zipping it, you need to make a folder named META-INF and put your menifest.inf file in that folder to make the resultant Jar work.

    Thanks a lot.

    Akash Shah.

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

    Default

    Just follows the way we create jar files. Actually the command prompt do the same thing, class files move to the correct place, create all necessary folders and menifest.inf file included all the details.

Similar Threads

  1. Replies: 2
    Last Post: 04-07-2009, 06:25 AM
  2. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  3. Replies: 7
    Last Post: 11-19-2008, 02:09 PM
  4. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  5. Replies: 7
    Last Post: 05-23-2008, 03:46 AM

Tags for this Thread

Posting Permissions

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