java - Specifying classpath for classes inside the JAR itself -


If I have a class org.foobar.MyClass and want to put it in a JAR file, then let me put it Will be in the / org / foobar / directory of the jar, or can I put it in / bin / org / foobar / and can somehow specify a pathway within / bin / jar?

The normal way is that everyone does this - I've never seen a JAR slightly so far Has - has put class org.foobar. In a Jar / org / foobar / directory in my class jar, I can not think of a good reason to do the file in a different way, because it will inhibit the normal use of this jar by anyone who does not do unusual things.


Comments