Skip to content

Commit

Permalink
修复Java9以上找不到ScriptEngineFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Luohuayu committed Oct 1, 2021
1 parent 8c4bd0e commit ec38e04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/catserver/server/launch/Java11Launch.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ private Java11Launch() {
Launch.classLoader = new LaunchClassLoader(sources);
Launch.blackboard = new HashMap<>();
Thread.currentThread().setContextClassLoader(Launch.classLoader);

Launch.classLoader.addClassLoaderExclusion("javax.script.");

return null;
});
} catch (Exception e) {
Expand Down

0 comments on commit ec38e04

Please sign in to comment.