I downloaded a package in java, which I'll call package1
, and I created a second package, which I'll call package2
. package2
has a reference to package1
.
Now I need to export package1
to a JAR
. I exported it (and in the process created a manifest file that specified the main
file of the package).
When running package1
from the commandline (java -jar package1.jar
), how do I "connect" it to package2
? That is, when I run java -jar package1.jar
I get errors about not finding specific classes that appear in package2
.