String CompilePath = \"abc.java\"; JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); String classpath = System.getProperty(\"java.class.path\"); System.s
Assuming you are using ANT to build your WAR file. You need to do something like below to include jars under WEB-INF/lib in your WAR. Modify the directory structure as it fits your app directory structure.