Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    14
    Rep Power
    0

    Default Can we Add lib folder insdie Project JAR file ?

    Hi Guys,
    While we are creating a build of swing application project with the help of IDE then IDE will create a <project name>.jar file and one lib folder contains all libraries.

    My point is that can we include the lib folder inside <project name>.jar file so it would be better to just make a single file instead of having two separate files i.e. jar and lib folder.

    Thanks in Advance
    Mahendra:)

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Eclipse has an Export.Export to Runnable JAR that does this. It looks at the Run configuration you select and creates the JAR file based on what it finds there.

    It gives a warning saying it is repacks libraries, so I assume it opens any JAR's it finds, extracts the contents to a directory format, and the includes it in the JAR.

    That doesn't sound too difficult to do manually. Make sure you don't violate anyone's license. Also, you will lose all signed JAR information from the JAR's you repack.

Similar Threads

  1. Replies: 5
    Last Post: 01-27-2010, 09:14 PM
  2. open existing project project ..
    By itaipee in forum Eclipse
    Replies: 1
    Last Post: 12-28-2008, 08:12 PM
  3. Creating Folder in JAVA and Copying File
    By fnoman in forum New To Java
    Replies: 8
    Last Post: 10-18-2008, 07:33 AM
  4. how to access shared file/folder in LAN
    By ksheetiz in forum Networking
    Replies: 1
    Last Post: 05-24-2008, 04:54 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
  •