JVM configuration problem on leetcode

Hello,

It seems leetcode JVM is not configured properly for concurrency problems.

I try to use ForkJoinPool for https://leetcode.com/problems/web-crawler-multithreaded/ problem

And on this line

ForkJoinPool fjPool = new ForkJoinPool();

I have an exception

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
  at line 472, java.base/java.security.AccessControlContext.checkPermission
  at line 1036, java.base/java.security.AccessController.checkPermission
  at line 408, java.base/java.lang.SecurityManager.checkPermission
  at line 666, java.base/java.util.concurrent.ForkJoinPool.checkPermission
  at line 2329, java.base/java.util.concurrent.ForkJoinPool.<init>
  at line 2174, java.base/java.util.concurrent.ForkJoinPool.<init>
  at line 26, Solution.crawl
  at line 124, __Driver__.main
Comments (1)