Creating a package in the .jar form
Posted on 2009-04-05
I would like to allow importing a few classes and package them in a single .jar file. How can I create such a package with the minimal number of steps?
Some of those classes use the names introduced in the "dependent" classes (used during the compilation). Do I need to include those "dependent classes" in the package to be imported?
When I compile a .java file using the classes packaged in a .jar, I attempted to use the statements
I receive an error saying that javac expects a dot ('.') in the imported name. However, it seems to reject the statements:
import <package name>.<class name>;