I have a rather large list of classes that are have created and rather than compiling the classes that are needed with the main code I would rather use import. The problem is I do not know how to make that reference. My end goal is to have a package called someClass and a file named c:\myClasses\someClass\someClass.java And within my main code, reference that file by import someClass; I am new to netbeans so I am not sure if something like that needs to be set in netbeans or in some environment variable like classpath. I have already tried setting my classpath however I did not anticipate it working and it didn't. I am willing to try anything including dropping netbeans and using another IDE if someone knows how to do this in another program like eclipse or something. Thanks for any help!