|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Question: I'm trying to write a script to package my class files into a jar file
|
JavaFAQ Home » Daily Tips

Question: I'm trying to write a script to
package my class files into a jar file. I can use "jar cf a.jar temp" and it
takes all files in the temp directory. Unfortunatly it also includes all source
java files. Is it possible to just include the *.class files but also recurse
all directories?
Answer: Compile with the -d option that lets to
specify a directory where your class files must be placed.
***************************************
Our older tips: March 22, 2001 - Oktober 21, 2002
read here.
All published and not published on site tips you can find
here
Printer Friendly Page
Send to a Friend
..
Search here again if you need more info!
|
|
|