<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Thanks Kevin, that works! I had completely forgotten about "prism.order."</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"><br>I see. I don't have a strong opinion on that. I can imagine that a warning might be useful?</div>
<div style="font-family: "verdana";
      font-size: 12px;
      color: #000;"> </div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">-- Marius</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"><span style="background-color: #ffffff;"> </span></div>
<div id="sub-body-container" style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left: 2px solid rgb(195, 217, 229);">
<div style="margin: 0px 0px 10px;">
<div><strong>Gesendet: </strong>Mittwoch, 8. Oktober 2025 um 13:53</div>
<div><strong>Von: </strong>"Kevin Rushforth" <kevin.rushforth@oracle.com></div>
<div><strong>An: </strong>openjfx-dev@openjdk.org</div>
<div><strong>Betreff: </strong>Re: Headless Tests in CI try to load shared libraries</div>
</div>
The headless platform also requires you to use the "sw" pipeline, so: `java -Dglass.platform=Headless -Dprism.order=sw`. Note that build.gradle does this when running the headless tests, e.g., when -PHEADLESS_TEST=true or when running javafx.web tests regardless:<br><br>
<pre>        // Run web tests in headless mode
        systemProperty 'glass.platform', 'Headless'
        systemProperty 'prism.order', 'sw'</pre>
It might be reasonable to consider forcing "sw" if glass.platform=Headless, but that would require PrismSettings to look for this glass property as Prism is initialized first.<br><br>-- Kevin<br><br><br>
<div class="moz-cite-prefix">On 10/8/2025 1:00 AM, Marius Hanl wrote:</div>
<blockquote>
<pre class="moz-quote-pre">Hi,

I recently tried to write headless tests by utilizing the new headless platform.
First of all, works great!

I noticed that the CI still tries to load shared libraries. This will fail in the CI with the following message:

Loading library prism_es2 from resource failed: 
java.lang.UnsatisfiedLinkError: /root/.openjfx/cache/26-ea+7/amd64/libprism_es2.so: Error loading shared library libX11.so.6: No such file or directory (needed by /root/.openjfx/cache/26-ea+7/amd64/libprism_es2.so)
java.lang.UnsatisfiedLinkError: /root/.openjfx/cache/26-ea+7/amd64/libprism_es2.so: Error loading shared library libX11.so.6: No such file or directory (needed by /root/.openjfx/cache/26-ea+7/amd64/libprism_es2.so)
    at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
    at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:321)
...


The tests still run and work regardless, but I wonder if this can be disabled. If not, if that's a feasible enhancement for headless tests?
Thoughts?

-- Marius
</pre>
</blockquote>
</div>