Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ClassLoader classLoader = FunctionService.class.getClassLoader();
- Path jarPath=Paths.get(System.getProperty("java.io.tmpdir")+File.separator+"uploaded"+File.separator+functionName+File.separator+fx.getJarFile());
- URLClassLoader urlClassLoader = new URLClassLoader(
- new URL[]{jarPath.toUri().toURL()},
- classLoader);
- String[] tempArray=fx.getHandler().split("::");
- Class executableClass = urlClassLoader.loadClass(tempArray[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement