>
> There is an issue with calling findClass on the instance field because it
> has protected visibility. loadClass on the other hand is public.
>
I tried with both passing the current context loader and system class
loader. getSystemClassLoader works in finding the JavaScript engine. So, I
tried passing ClassLoader.getSystemClassLoader directly to
ScriptEngineManager's constructor and it works the same. It is able to find
the engine. This could come with the issue that graal vm may not be on the
system class loader path so we need to think how to work that out. But in
the meantime, we can try to progress on the loading script from the pom.
Regards,
Kartik