title: Running Derby as a server on Linux using JDK11
body: <h1>I am at my wits end!</h1>
  <ul>
  <li>I have a minimal install of Ubuntu Server 18.04 and OpenJDK 11 (headless).</li>
  <li>Downloaded, to a local folder are the java 9+ binaries for Derby (db-derby-10.15.2.0-bin)</li>
  </ul>
  <p><em>Path and Environment settings are all correct!</em></p>
  <p>When I start the server <code>startNetworkServer -h 0.0.0.0</code>, I get an error when doing a simple connect using the <code>ij</code> command line tool<br/></p>
  <pre><code>ij&gt; connect 'jdbc:derby://localhost:1527/dbname;create=true';
  ERROR XJ041: DERBY SQL error: ERRORCODE: 40000, SQLSTATE: XJ041, SQLERRMC: Failed to create database 'dbname', see the next exception for details.::SQLSTATE: XBM01::SQLSTATE: XJ001
  </code></pre>
  <p>The derby.log file makes reference to:</p>
  <pre><code>java.security.AccessControlException: access denied (&quot;java.lang.RuntimePermission&quot; &quot;getenv.SOURCE_DATE_EPOCH&quot;)
  </code></pre>
  <p>Looking further into this error, I learned that I somehow need a security.profile.  I found this website that seemed to be the answers to my problems. <a href="https://www.javacodegeeks.com/2020/04/apache-derby-database-jvm-security-policy.html" rel="nofollow noreferrer">https://www.javacodegeeks.com/2020/04/apache-derby-database-jvm-security-policy.html</a></p>
  <p>Following these pretty straight-forward instructions, I get:</p>
  <pre><code>java.security.AccessControlException: access denied
  org.apache.derby.shared.common.security.SystemPermission( &quot;engine&quot;, &quot;usederbyinternals&quot; )
  </code></pre>