Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jar file is empty

800461Jun 13 2010 — edited Jun 15 2010
Hi,

I am trying to package a small application into a jar file, but besides the manifest, the jar comes out empty.
My directory structure is a s follows
/mydir/src/ [java files and manifest.txt]
/mydir/bin/[compiled java classes in packages]

I run the following command from /mydir/src/: jar cmf manifest.txt ../bin/MyJar.jar ../bin

I understood that the last argument - ../bin should tell the utility to include all the contents of the bin directory - where my class files are. But they are not in the jar.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2010
Added on Jun 13 2010
7 comments
851 views