It is almost always better to use Java like it is intended to be used, meaning putting the jars of your libs on the classpath.