Results 1 to 5 of 5

Thread: Jar file???

  1. #1
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

    Red face Jar file???

    How to create jar file??

    and how to call them in our application ??


    i m using netbeans i think in library folder we add jar file ?

    but 1st how to create jar file????

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Jar file???

    Netbeans will have dialogs that enable jar files to be created and be made accessible to other programs that you write.

    I don't know what these are (others might) but I do know that you will gain the best understanding of such fundemental concepts by working at the command line at first and following the illustrated discussion in, eg, Packaging Programs in Jar Files in Oracle's Tutorial.

  3. #3
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

    Default Re: Jar file???

    Thanks!!

    i got how to create jar !!
    but its not a executable its a zip file!!

    and when i used


    java -jar <myfile.jar>


    command then it gives error

    main function is not present !!!


    what to do

    ???

  4. #4
    bayan.rafeh is offline Member
    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Default Re: Jar file???

    You created a jar archive not a jar executable. Did you create a manifest file? If so please paste it's contents here.

  5. #5
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

    Default Re: Jar file???

    thanks for your interest!!!


    I got all in detail !!

    and it executed how i want !!!!



    Thanks !!





Similar Threads

  1. Replies: 6
    Last Post: 12-01-2010, 06:31 AM
  2. Replies: 1
    Last Post: 08-04-2010, 04:24 PM
  3. Replies: 8
    Last Post: 02-18-2010, 01:54 PM
  4. Replies: 0
    Last Post: 02-11-2009, 10:53 AM
  5. Replies: 7
    Last Post: 05-23-2008, 04:46 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
  •