I am trying to create a JAR file via cmd line, but am having trouble with compiling it relative to a JAR file created using Eclipse.
To use the command line version, I do the following:
jar cf "myjar.jar" A.java B.java C.java
In the directory that I run that command from, only the three files exist.
When I build it from Eclipse, I right click on the three selected files. Then do: Export -> JAR file -> Finish (compress contents of JAR).
The size difference is very noticeable, 19 KB (cmd) versus 43 KB (Eclipse). When I try to use the command line created JAR, my application fails. My guess is that the command line created JAR does not include all necessary dependencies (outside of the three classes).
Any help on what I am doing wrong would be greatly appreciated!