i have a problem...please have a look on my project directory
so very obviously i have 3 packages , components, others and gui, now i want to make an executable jar file, so i run a command from spinner directory
jar -cvfm myexe.jar meta-inf/manifest.mf components/*.class gui/*.class others/*.class
so , in this way it worked well, but what i want is , i shdnt be specifying all packages...suppose i have 10 packages, so i will need to write all those in command and that i don't want , so is'nt there any wildcard for this? so that all packages are included in jar file automatically...??? in other words i want each and everything in spinner directory to be packaged in jar file without specifying all ....
hope my question is clear...please help!!
Joined: Aug 17, 2009
Why dont you run the command from the directory above spinner. E.g. jar -cvf myjar.jar spinner/.
Surely if this is your package structure then you would need the spinner directory included anyway. Anyway if not try jar -cvf myjar.jar ./