|
|
|
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"!. |
|
Easy Learn Java: Programming Articles, Examples and Tips - Page 19
Previous
1060 Stories (530 Pages, 2 Per Page)
Next
Question: I'm trying to write a script to package my class files into a jar file
|
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
15 comments | | Score: 0
|
Posted by jalex on Tuesday, February 11, 2003 (00:00:00) (3364 reads)
|
Question: I have an applet. I have succesfully added the class to a JAR, but whe
|
Question: I have an applet. I have
succesfully added the class to a JAR, but when the web page tries to load the
applet, the broswer gives us an error "can't find class file". When unzipping
the JAR, my added class is present.
Answer: Do not forget to add the "ARCHIVE"
option to the APPLET tag like this
If "archive" is missing the browser will not know that your class is in a jar
file...
***************************************
Our older tips: March 22, 2001 - Oktober 21, 2002 read here.
All published and not published on site tips you can find here
28 comments | | Score: 5
|
Posted by jalex on Monday, February 10, 2003 (00:00:00) (2903 reads)
|
|
|