I have a question regarding compiling a class which has some dependent classes in a Jar file (MyJar.jar). By putting a directory tree in a -classpath option (ex
MyJar.jar
If your directory tree represents packages, then all your classes will be loaded and usable.
For example, the following class:
package my.company.project; public class MyClass { public static void main(String[] args) {} }
Should be inside the folder my/company/project to be usable.