This is a "out of curiosity" question. I'm familiar with setting up user libraries in IDEs (NetBeans, Eclipse) and importing them to programs via something like
import com.mongodb;
Is there a way to import a jar file for a library directly though? Something like
import C:/lib/mongodb/mongo-java-driver-2.12.2.jar;
or perhaps
import /libs/mongodb/; // for linux, where /libs/ is a softlink
Again, this is a mere curiosity. I understand that this goes against most conventions, but I'm looking at rapidly developing prototypes in the future and I was wondering if this is a viable option for saving some time in the development cycle.