title: Gitlab CI Pipeline: Graal.js ScriptEngine cannot be loaded on GraalVM Docker Container
body: <p>in my Java Project (Java 17, GraalVM, Maven3) I am currently having a problem in the CI pipeline. It is constantly throwing NullPointerExceptions at a point I do not expect.</p>
  <p>The relevant piece of code is this:</p>
  <pre><code>ScriptEngine graalEngine = new ScriptEngineManager().getEngineByName(&quot;graal.js&quot;);
  </code></pre>
  <p>This statement does return null. The challenging part is: this does only happen on my CI environment. Locally everything works fine.</p>
  <p>I have even specified the dependency to GraalJS in my pom.xml, even though that should not make a difference comparing between local and CI</p>
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.graalvm.js&lt;/groupId&gt;
          &lt;artifactId&gt;js&lt;/artifactId&gt;
          &lt;version&gt;${graalvm.version}&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.graalvm.js&lt;/groupId&gt;
          &lt;artifactId&gt;js-scriptengine&lt;/artifactId&gt;
          &lt;version&gt;${graalvm.version}&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      ...
  &lt;/dependencies&gt;
  </code></pre>
  <p>Locally I have Graal VM 17 installed (graalvm-ce-java17-22.0.0.2) and linked as JAVA_HOME and located in my path.</p>
  <p>On the CI environment I am using ghcr.io/graalvm/jdk:ol7-java17-22 as build container</p>
  <p>This is the relevant part of my Gitlab Pipeline</p>
  <pre><code>service:test:
    stage: test
    image: ghcr.io/graalvm/jdk:ol7-java17-22
    needs: []
    script:
      - ./mvnw test
  </code></pre>
  <p>I have even tried to inspect the container to see if it supports graaljs but it seems to</p>
  <pre><code>docker run -it --rm ghcr.io/graalvm/jdk:ol7-java17-22 bash
  jshell
  new javax.script.ScriptEngineManager().getEngineByName(&quot;graal.js&quot;);
  $1 ==&gt; com.oracle.truffle.js.scriptengine.GraalJSScriptEngine@6d8a00e3
  </code></pre>
  <p>Does anybody here have an idea why this is happening?</p>
  <p>Thanks in advance for your support.</p>