Here I am try to get the file urls dynamically to set to compiler in code. I'm using code to get those by casting the class loader got from thread context and then cast it to UrlclassLoader and then call getUrls method. But in Java 10 it is not supported as per documentation. Is there any alternative for this?
Asked
Active
Viewed 50 times
1
UrlclassLoader ul = (UrlclassLoader) Thread.currentthread().getcontext.getclassLoader(); URL urls[] = UL.geturls();
urls[] needed for further processing – Kartik Parihar Jun 20 '18 at 20:05