1

I'm trying to embed Apache Derby into an application. When I run it directly from IntelliJ, everything works fine, but sbt run generates the exception:

Caused by: java.security.AccessControlException: access denied org.apache.derby.security.SystemPermission( "engine", "usederbyinternals" )

This seems to relate to the SecurityManager that SBT uses. Are there ways to disable, reconfigure, or override the default SBT SecurityManager?

Ben McKenneby
  • 481
  • 4
  • 15

1 Answers1

0

JGC provided the insight in this question.

In the relevant app:

System.setSecurityManager(null)

Alternatively, one could simply provide a preferred security manager in this way.

Ben McKenneby
  • 481
  • 4
  • 15