I need to access all the jars in a directory. I've included this directory in the classpath. But compilation fails with import package not found or class not found. If I explicitly include all jar files in the classpath, then as expected, it works. isn't it possible otherwise - just including the directory in the classpath and placing all required jar files in this directory?
No, unfortunately, there's no simple way from the command line to include all jars in a directory in the classpath. However, with an Ant build script, you can do it easily.