I have condition on web application where I am upload a .java source file and compiling this source based on the dependencies with jar files resides in WEB-INF/lib folder.
I am able to load this jar file by using this code able to compile successfully and move .class in proper package with the help of this
thread.
How to set classpath when I use javax.tools.JavaCompiler compile the source?.
the only problem I having here when I upload a .java source file which actually have an association with my current application
java file comipler didn't find the reference of this source and complaining the error.
package com.saif does not exist.
Any help would be appreciated.
Thanks,