Creating the jar file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Creating the jar file

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    7

    Creating the jar file

    My java app is put in the folder with structure as below ...

    \myapp
    \myapp\myapp.class
    \myapp\libs
    \myapp\libs\lib
    \myapp\libs\lib\lib1.class
    \myapp\libs\lib\lib2.class
    \myapp\libs\util
    \myapp\libs\util\util1.class

    My question is, how do I create the jar file from the application above ?

  2. #2
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    3
    system.drawing,

    Use

    jar cvf myapp.jar myapp.class lib util

    According to Sun's docs that should recursively process the two subdir's as well: http://java.sun.com/docs/books/tutor...ics/build.html

Similar Threads

  1. Replies: 8
    Last Post: 04-06-2005, 04:17 AM
  2. Replies: 1
    Last Post: 02-05-2001, 11:11 PM
  3. Creating a flat file
    By SUE in forum Database
    Replies: 3
    Last Post: 02-01-2001, 06:03 PM
  4. Creating exe from javasource file
    By Raj in forum Java
    Replies: 5
    Last Post: 11-14-2000, 05:28 AM
  5. Creating text file
    By CB Green in forum VB Classic
    Replies: 6
    Last Post: 07-27-2000, 01:55 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center