Skip to content

[Native Image] Error: Type is not available in this platform: com.oracle.svm.hosted.NativeImageGeneratorRunner #11360

Closed
@Ferrarisrex

Description

@Ferrarisrex

Describe the Issue

after rerunning the agent to make the reflection files, it gives me the error message of:
Error: Type is not available in this platform: com.oracle.svm.hosted.NativeImageGeneratorRunner
Detailed message:
Trace: Object was reached by
reading static field sun.launcher.LauncherHelper.appClass
at
registered as read because: it is registered for as JNI accessed

it did compile correctly on the old version of the agent reflection files

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

java version "21.0.7" 2025-04-15 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.7+8.1 (build 21.0.7+8-LTS-jvmci-23.1-b60)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.7+8.1 (build 21.0.7+8-LTS-jvmci-23.1-b60, mixed mode, sharing)

Operating System and Version

Windows 10

Build Command

<plugin>
            <groupId>org.graalvm.buildtools</groupId>
            <artifactId>native-maven-plugin</artifactId>
            <version>0.10.3</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>build-compat</id>
                <goals>
                  <goal>build</goal>
                </goals>
                <phase>package</phase>
              </execution>
            </executions>
            <configuration>
              <imageName>psd4-x86-64-v1</imageName>
              <mainClass>com.ferra.launcherClass</mainClass>
              <buildArgs>
                <buildArg>-O1</buildArg>
                <buildArg>--no-fallback</buildArg>
                <buildArg>--enable-url-protocols=https</buildArg>
                <buildArg>--enable-url-protocols=http</buildArg>
                <buildArg>-H:Log=registerResource</buildArg>
                <buildArg>-H:IncludeResources=".*/prism/.*"</buildArg>
                <buildArg>-H:IncludeResources=".*png$"</buildArg>
                <!--<buildArg>-H:IncludeResources='.*\.dll$'</buildArg>-->
                <!--<buildArg>-H:IncludeResources=".*fxml$"</buildArg>
                <buildArg>-H:IncludeResources=".*css$"</buildArg>
                <buildArg>-H:IncludeResources=".*frag$"</buildArg>
                <buildArg>-H:IncludeResources=".*vert$"</buildArg>
                <buildArg>-H:IncludeResources=".*cso$"</buildArg>
                <buildArg>-H:IncludeResources=".*fx$"</buildArg>
                <buildArg>-H:IncludeResources=".*hlsl$"</buildArg>-->
                <buildArg>-H:IncludeResources=".*/sun/scenario/effect/.*"</buildArg>
                <buildArg>-H:IncludeResources=".*/sound/sampled/.*"</buildArg>
                <buildArg>-H:IncludeResources="./clusterers.UpdateableClusterer"</buildArg>
                <!--<buildArg>-H:IncludeResources=".*/awt/.*"</buildArg>-->
                <!--<buildArg>-H:IncludeResources=".*/sun/.*"</buildArg>
                <buildArg>-H:IncludeResources=".*"</buildArg>-->
                <buildArg>-march=x86-64-v1</buildArg>
                <buildArg>-Dprism.order=sw</buildArg>
                <!--<buildArg>-R:Djava.awt.headless=false</buildArg>-->
                <!--<buildArg>-H:ClassInitialization=com.sun.prism.shader.Mask_TextureSuper_Loader:build_time</buildArg>-->
                <buildArg>-H:ExcludeResources=".*/calendar/.*"</buildArg>
                <buildArg>-H:ExcludeResources=".*/bounce/.*"</buildArg>

              </buildArgs>
            </configuration>
          </plugin>

Expected Behavior

For it to compile like it did before

Actual Behavior

it crashes

Steps to Reproduce

  1. mvn -Pcompat package

Additional Context

No response

Build Log Output and Error Messages

PS C:\Users\Ferra\psdapp> mvn -Pcompat package
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< com.ferra:psd4 >---------------------------
[INFO] Building psd4 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] 6 problems were encountered while building the effective model for org.openjfx:javafx-controls:jar:20 during dependency collection step for project (use -X to see details)
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ psd4 ---
[INFO] Copying 23 resources from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ psd4 ---
[WARNING] Can't extract module name from java-cup-11b-20160615.jar: java.cup.11b: Invalid module name: '11b' is not a Java identifier
[WARNING] Can't extract module name from native_system-java-1.1.jar: native.system.java: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-linux-x86_64-1.1-natives.jar: netlib.native.ref.linux.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from native_ref-java-1.1.jar: native.ref.java: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-linux-x86_64-1.1-natives.jar: netlib.native.system.linux.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-linux-i686-1.1-natives.jar: netlib.native.system.linux.i686: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from java-cup-runtime-11b-20160615.jar: java.cup.runtime.11b: Invalid module name: '11b' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-osx-x86_64-1.1-natives.jar: netlib.native.system.osx.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-win-i686-1.1-natives.jar: netlib.native.system.win.i686: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-osx-x86_64-1.1-natives.jar: netlib.native.ref.osx.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-win-i686-1.1-natives.jar: netlib.native.ref.win.i686: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-linux-armhf-1.1-natives.jar: netlib.native.ref.linux.armhf: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-linux-i686-1.1-natives.jar: netlib.native.ref.linux.i686: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-win-x86_64-1.1-natives.jar: netlib.native.system.win.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_system-linux-armhf-1.1-natives.jar: netlib.native.system.linux.armhf: Invalid module name: 'native' is not a Java identifier
[WARNING] Can't extract module name from netlib-native_ref-win-x86_64-1.1-natives.jar: netlib.native.ref.win.x86.64: Invalid module name: 'native' is not a Java identifier
[WARNING] ************************************************************************************************************************************************************************************************[WARNING] * Required filename-based automodules detected: [weka-stable-3.8.6.jar, bounce-0.18.jar, java-string-similarity-2.0.0.jar]. Please don't publish this project to a public artifact repository! *[WARNING] ************************************************************************************************************************************************************************************************[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ psd4 ---
[INFO] skip non existing resourceDirectory C:\Users\Ferra\psdapp\src\test\resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ psd4 ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ psd4 ---
[WARNING]  Parameter 'systemProperties' is deprecated: Use systemPropertyVariables instead.
[INFO]
[INFO] --- jar:3.0.2:jar (default-jar) @ psd4 ---
[INFO] Building jar: C:\Users\Ferra\psdapp\target\psd4-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- shade:3.6.0:shade (default) @ psd4 ---
[INFO] Including nz.ac.waikato.cms.weka:weka-stable:jar:3.8.6 in the shaded jar.
[INFO] Including com.github.vbmacher:java-cup:jar:11b-20160615 in the shaded jar.
[INFO] Including com.github.vbmacher:java-cup-runtime:jar:11b-20160615 in the shaded jar.
[INFO] Including nz.ac.waikato.cms.weka.thirdparty:bounce:jar:0.18 in the shaded jar.
[INFO] Including com.googlecode.matrix-toolkits-java:mtj:jar:1.0.4 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-osx-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:native_ref-java:jar:1.1 in the shaded jar.
[INFO] Including com.github.fommil:jniloader:jar:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-linux-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-linux-i686:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-win-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-win-i686:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_ref-linux-armhf:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-osx-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:native_system-java:jar:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-linux-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-linux-i686:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-linux-armhf:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-win-x86_64:jar:natives:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:netlib-native_system-win-i686:jar:natives:1.1 in the shaded jar.
[INFO] Including net.sourceforge.f2j:arpack_combined_all:jar:0.1 in the shaded jar.
[INFO] Including com.googlecode.netlib-java:netlib-java:jar:1.1 in the shaded jar.
[INFO] Including com.github.fommil.netlib:core:jar:1.1 in the shaded jar.
[INFO] Including com.github.fracpete:jfilechooser-bookmarks:jar:0.1.6 in the shaded jar.
[INFO] Including com.github.fracpete:jclipboardhelper:jar:0.1.0 in the shaded jar.
[INFO] Including com.sun.istack:istack-commons-runtime:jar:3.0.12 in the shaded jar.
[INFO] Including jakarta.activation:jakarta.activation-api:jar:1.2.2 in the shaded jar.
[INFO] Including jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3 in the shaded jar.
[INFO] Including org.glassfish.jaxb:jaxb-runtime:jar:2.3.5 in the shaded jar.
[INFO] Including org.glassfish.jaxb:txw2:jar:2.3.5 in the shaded jar.
[INFO] Including com.sun.activation:jakarta.activation:jar:1.2.2 in the shaded jar.
[INFO] Including com.formdev:flatlaf:jar:2.0 in the shaded jar.
[INFO] Including com.opencsv:opencsv:jar:5.9 in the shaded jar.
[INFO] Including org.apache.commons:commons-lang3:jar:3.13.0 in the shaded jar.
[INFO] Including org.apache.commons:commons-text:jar:1.11.0 in the shaded jar.
[INFO] Including commons-beanutils:commons-beanutils:jar:1.9.4 in the shaded jar.
[INFO] Including commons-logging:commons-logging:jar:1.2 in the shaded jar.
[INFO] Including commons-collections:commons-collections:jar:3.2.2 in the shaded jar.
[INFO] Including org.apache.commons:commons-collections4:jar:4.4 in the shaded jar.
[INFO] Including info.debatty:java-string-similarity:jar:2.0.0 in the shaded jar.
[INFO] Including net.jcip:jcip-annotations:jar:1.0 in the shaded jar.
[INFO] Including io.javalin:javalin:jar:6.6.0 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:2.0.17 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-server:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-http:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-util:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-io:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-jetty-server:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-servlet:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-security:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-webapp:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-xml:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-jetty-api:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-jetty-common:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-core-common:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-servlet:jar:11.0.25 in the shaded jar.
[INFO] Including org.eclipse.jetty.websocket:websocket-core-server:jar:11.0.25 in the shaded jar.
[INFO] Including org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.9.25 in the shaded jar.
[INFO] Including org.jetbrains.kotlin:kotlin-stdlib:jar:1.9.25 in the shaded jar.
[INFO] Including org.jetbrains:annotations:jar:13.0 in the shaded jar.
[INFO] Including org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.9.25 in the shaded jar.
[INFO] Including org.openjfx:javafx-controls:jar:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-controls:jar:win:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-graphics:jar:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-graphics:jar:win:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-base:jar:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-base:jar:win:20 in the shaded jar.
[INFO] Including org.openjfx:javafx-fxml:jar:13 in the shaded jar.
[INFO] Including org.openjfx:javafx-fxml:jar:win:13 in the shaded jar.
[INFO] Including io.github.mkpaz:atlantafx-base:jar:2.0.1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.17.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.17.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.17.2 in the shaded jar.
[INFO] Including org.kordamp.ikonli:ikonli-material2-pack:jar:12.3.1 in the shaded jar.
[INFO] Including org.kordamp.ikonli:ikonli-core:jar:12.3.1 in the shaded jar.
[INFO] Including org.kordamp.ikonli:ikonli-materialdesign2-pack:jar:12.3.1 in the shaded jar.
[INFO] Including org.kordamp.ikonli:ikonli-javafx:jar:12.3.1 in the shaded jar.
[INFO] Including com.dustinredmond.fxalert:FXAlert:jar:3.1.0 in the shaded jar.
[INFO] Skipping pom dependency com.github.fommil.netlib:all:pom:1.1.2 in the shaded jar.
[INFO] Dependency-reduced POM written at: C:\Users\Ferra\psdapp\dependency-reduced-pom.xml
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] commons-text-1.11.0.jar, flatlaf-2.0.jar, jackson-core-2.17.2.jar, jackson-databind-2.17.2.jar, kotlin-stdlib-1.9.25.jar, kotlin-stdlib-jdk7-1.9.25.jar, kotlin-stdlib-jdk8-1.9.25.jar, slf4j-api-2.0.17.jar define 1 overlapping classes:
[WARNING]   - META-INF.versions.9.module-info
[WARNING] jackson-annotations-2.17.2.jar, jackson-core-2.17.2.jar, jackson-databind-2.17.2.jar define 1 overlapping resource:
[WARNING]   - META-INF/NOTICE
[WARNING] java-cup-11b-20160615.jar, java-cup-runtime-11b-20160615.jar define 22 overlapping classes:
[WARNING]   - java_cup.runtime.ComplexSymbolFactory
[WARNING]   - java_cup.runtime.ComplexSymbolFactory$ComplexSymbol
[WARNING]   - java_cup.runtime.ComplexSymbolFactory$Location
[WARNING]   - java_cup.runtime.DefaultSymbolFactory
[WARNING]   - java_cup.runtime.Scanner
[WARNING]   - java_cup.runtime.ScannerBuffer
[WARNING]   - java_cup.runtime.Symbol
[WARNING]   - java_cup.runtime.SymbolFactory
[WARNING]   - java_cup.runtime.SyntaxTreeDFS
[WARNING]   - java_cup.runtime.SyntaxTreeDFS$AbstractVisitor
[WARNING]   - 12 more...
[WARNING] FXAlert-3.1.0.jar, annotations-13.0.jar, arpack_combined_all-0.1.jar, atlantafx-base-2.0.1.jar, bounce-0.18.jar, commons-beanutils-1.9.4.jar, commons-collections-3.2.2.jar, commons-collections4-4.4.jar, commons-lang3-3.13.0.jar, commons-logging-1.2.jar, commons-text-1.11.0.jar, core-1.1.jar, flatlaf-2.0.jar, ikonli-core-12.3.1.jar, ikonli-javafx-12.3.1.jar, ikonli-material2-pack-12.3.1.jar, 
ikonli-materialdesign2-pack-12.3.1.jar, istack-commons-runtime-3.0.12.jar, jackson-annotations-2.17.2.jar, jackson-core-2.17.2.jar, jackson-databind-2.17.2.jar, jakarta.activation-1.2.2.jar, jakarta.activation-api-1.2.2.jar, jakarta.xml.bind-api-2.3.3.jar, java-cup-11b-20160615.jar, java-cup-runtime-11b-20160615.jar, java-string-similarity-2.0.0.jar, javafx-base-20-win.jar, javafx-base-20.jar, javafx-controls-20-win.jar, javafx-controls-20.jar, javafx-fxml-13-win.jar, javafx-fxml-13.jar, javafx-graphics-20-win.jar, javafx-graphics-20.jar, javalin-6.6.0.jar, jaxb-runtime-2.3.5.jar, jcip-annotations-1.0.jar, jclipboardhelper-0.1.0.jar, jetty-http-11.0.25.jar, jetty-io-11.0.25.jar, jetty-jakarta-servlet-api-5.0.2.jar, jetty-security-11.0.25.jar, jetty-server-11.0.25.jar, jetty-servlet-11.0.25.jar, jetty-util-11.0.25.jar, jetty-webapp-11.0.25.jar, jetty-xml-11.0.25.jar, jfilechooser-bookmarks-0.1.6.jar, jniloader-1.1.jar, kotlin-stdlib-1.9.25.jar, kotlin-stdlib-jdk7-1.9.25.jar, kotlin-stdlib-jdk8-1.9.25.jar, mtj-1.0.4.jar, native_ref-java-1.1.jar, native_system-java-1.1.jar, netlib-java-1.1.jar, netlib-native_ref-linux-armhf-1.1-natives.jar, netlib-native_ref-linux-i686-1.1-natives.jar, netlib-native_ref-linux-x86_64-1.1-natives.jar, netlib-native_ref-osx-x86_64-1.1-natives.jar, netlib-native_ref-win-i686-1.1-natives.jar, netlib-native_ref-win-x86_64-1.1-natives.jar, netlib-native_system-linux-armhf-1.1-natives.jar, netlib-native_system-linux-i686-1.1-natives.jar, netlib-native_system-linux-x86_64-1.1-natives.jar, netlib-native_system-osx-x86_64-1.1-natives.jar, netlib-native_system-win-i686-1.1-natives.jar, netlib-native_system-win-x86_64-1.1-natives.jar, opencsv-5.9.jar, psd4-1.0-SNAPSHOT.jar, slf4j-api-2.0.17.jar, txw2-2.3.5.jar, websocket-core-common-11.0.25.jar, websocket-core-server-11.0.25.jar, websocket-jetty-api-11.0.25.jar, websocket-jetty-common-11.0.25.jar, websocket-jetty-server-11.0.25.jar, websocket-servlet-11.0.25.jar, weka-stable-3.8.6.jar define 1 overlapping resource:   
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] jakarta.activation-1.2.2.jar, jakarta.activation-api-1.2.2.jar define 31 overlapping classes:
[WARNING]   - javax.activation.ActivationDataFlavor
[WARNING]   - javax.activation.CommandInfo
[WARNING]   - javax.activation.CommandInfo$Beans
[WARNING]   - javax.activation.CommandInfo$Beans$1
[WARNING]   - javax.activation.CommandMap
[WARNING]   - javax.activation.CommandObject
[WARNING]   - javax.activation.DataContentHandler
[WARNING]   - javax.activation.DataContentHandlerFactory
[WARNING]   - javax.activation.DataHandler
[WARNING]   - javax.activation.DataHandler$1
[WARNING]   - 21 more...
[WARNING] flatlaf-2.0.jar, ikonli-core-12.3.1.jar, ikonli-javafx-12.3.1.jar, ikonli-material2-pack-12.3.1.jar, ikonli-materialdesign2-pack-12.3.1.jar, jackson-annotations-2.17.2.jar, jackson-core-2.17.2.jar, jackson-databind-2.17.2.jar, javalin-6.6.0.jar, jetty-http-11.0.25.jar, jetty-io-11.0.25.jar, jetty-security-11.0.25.jar, jetty-server-11.0.25.jar, jetty-servlet-11.0.25.jar, jetty-util-11.0.25.jar, jetty-webapp-11.0.25.jar, jetty-xml-11.0.25.jar, websocket-core-common-11.0.25.jar, websocket-core-server-11.0.25.jar, websocket-jetty-api-11.0.25.jar, websocket-jetty-common-11.0.25.jar, websocket-jetty-server-11.0.25.jar, websocket-servlet-11.0.25.jar define 1 overlapping resource:
[WARNING]   - META-INF/LICENSE
[WARNING] javafx-controls-20-win.jar, javafx-graphics-20-win.jar define 4 overlapping resources:
[WARNING]   - META-INF/substrate/config/reflectionconfig-aarch64-android.json
[WARNING]   - META-INF/substrate/config/reflectionconfig-arm64-ios.json
[WARNING]   - META-INF/substrate/config/reflectionconfig-x86_64-ios.json
[WARNING]   - META-INF/substrate/config/resourcebundles
[WARNING] javafx-base-20-win.jar, javafx-controls-20-win.jar, javafx-graphics-20-win.jar define 1 overlapping resource:
[WARNING]   - META-INF/substrate/config/reflectionconfig.json
[WARNING] commons-beanutils-1.9.4.jar, commons-collections-3.2.2.jar, commons-collections4-4.4.jar, commons-lang3-3.13.0.jar, commons-logging-1.2.jar, commons-text-1.11.0.jar, jetty-http-11.0.25.jar, jetty-io-11.0.25.jar, jetty-security-11.0.25.jar, jetty-server-11.0.25.jar, jetty-servlet-11.0.25.jar, jetty-util-11.0.25.jar, jetty-webapp-11.0.25.jar, jetty-xml-11.0.25.jar, websocket-core-common-11.0.25.jar, websocket-core-server-11.0.25.jar, websocket-jetty-api-11.0.25.jar, websocket-jetty-common-11.0.25.jar, websocket-jetty-server-11.0.25.jar, websocket-servlet-11.0.25.jar define 1 overlapping resource:
[WARNING]   - META-INF/NOTICE.txt
[WARNING] commons-beanutils-1.9.4.jar, commons-collections-3.2.2.jar, commons-collections4-4.4.jar, commons-lang3-3.13.0.jar, commons-logging-1.2.jar, commons-text-1.11.0.jar, slf4j-api-2.0.17.jar define 1 overlapping resource:
[WARNING]   - META-INF/LICENSE.txt
[WARNING] istack-commons-runtime-3.0.12.jar, jakarta.activation-1.2.2.jar, jakarta.activation-api-1.2.2.jar, jakarta.xml.bind-api-2.3.3.jar, jaxb-runtime-2.3.5.jar, jetty-jakarta-servlet-api-5.0.2.jar, 
txw2-2.3.5.jar define 2 overlapping resources:
[WARNING]   - META-INF/LICENSE.md
[WARNING]   - META-INF/NOTICE.md
[WARNING] maven-shade-plugin has detected that some files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the file is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See https://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing C:\Users\Ferra\psdapp\target\psd4-1.0-SNAPSHOT.jar with C:\Users\Ferra\psdapp\target\psd4-1.0-SNAPSHOT-shaded.jar
[INFO] 
[INFO] --- native:0.10.3:build (build-compat) @ psd4 ---
[WARNING] 'native:build' goal is deprecated. Use 'native:compile-no-fork' instead.
[INFO] Found GraalVM installation from JAVA_HOME variable.
[WARNING] Ignoring ImageClasspath Entry 'com.github.fommil.netlib:all:pom:1.1.2:compile' with unsupported type 'pom'
[INFO] [graalvm reachability metadata repository for org.glassfish.jaxb:jaxb-runtime:2.3.5]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for org.glassfish.jaxb:jaxb-runtime:2.3.5]: Configuration directory is org.glassfish.jaxb\jaxb-runtime\3.0.2
[INFO] [graalvm reachability metadata repository for commons-logging:commons-logging:1.2]: Configuration directory is commons-logging\commons-logging\1.2
[INFO] [graalvm reachability metadata repository for org.eclipse.jetty:jetty-server:11.0.25]: Configuration directory is org.eclipse.jetty\jetty-server\11.0.12
[INFO] [graalvm reachability metadata repository for org.eclipse.jetty:jetty-util:11.0.25]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for org.eclipse.jetty:jetty-util:11.0.25]: Configuration directory is org.eclipse.jetty\jetty-util\12.0.9
[INFO] [graalvm reachability metadata repository for org.jetbrains.kotlin:kotlin-stdlib:1.9.25]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for org.jetbrains.kotlin:kotlin-stdlib:1.9.25]: Configuration directory is org.jetbrains.kotlin\kotlin-stdlib\1.7.10
[INFO] [graalvm reachability metadata repository for com.fasterxml.jackson.core:jackson-databind:2.17.2]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for com.fasterxml.jackson.core:jackson-databind:2.17.2]: Configuration directory is com.fasterxml.jackson.core\jackson-databind\2.15.2
[INFO] Executing: C:\graalvm\bin\native-image.cmd @target\tmp\native-image-11575426220166669209.args com.ferra.launcherClass
Warning: The option '-H:IncludeResources=.*/sun/scenario/effect/.*' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ExcludeResources=.*/calendar/.*' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:Log=registerResource' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=.*png$' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=./clusterers.UpdateableClusterer' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ExcludeResources=.*/bounce/.*' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=.*/sound/sampled/.*' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=.*/prism/.*' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.
========================================================================================================================
GraalVM Native Image: Generating 'psd4-x86-64-v1' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (5.8s @ 0.19GB)
 Java version: 21.0.7+8-LTS, vendor version: Oracle GraalVM 21.0.7+8.1
 Graal compiler: optimization level: 1, target machine: x86-64-v1, PGO: off
 C compiler: cl.exe (microsoft, x64, 19.44.35209)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 1 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
------------------------------------------------------------------------------------------------------------------------
 2 experimental option(s) unlocked:
 - '-H:ExcludeResources' (origin(s): command line, command line)
 - '-H:IncludeResources' (origin(s): command line, command line, command line, command line, command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 11.97GB of memory (75.6% of 15.84GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
Found pending operations, continuing analysis.
[2/8] Performing analysis...  [******]                                                                  (38.3s @ 3.18GB)
   19,737 reachable types   (90.6% of   21,779 total)
   44,628 reachable fields  (66.4% of   67,188 total)
  109,133 reachable methods (63.5% of  171,816 total)
    6,419 types, 2,197 fields, and 9,440 methods registered for reflection
      390 types, 2,315 fields, and   235 methods registered for JNI access
        5 native libraries: crypt32, ncrypt, psapi, version, winhttp

Error: Type is not available in this platform: com.oracle.svm.hosted.NativeImageGeneratorRunner
Detailed message:
Trace: Object was reached by
  reading static field sun.launcher.LauncherHelper.appClass
    at <unknown-location>
  registered as read because: it is registered for as JNI accessed

------------------------------------------------------------------------------------------------------------------------
                        6.4s (14.2% of total time) in 96 GCs | Peak RSS: 4.19GB | CPU load: 7.97
========================================================================================================================
Finished generating 'psd4-x86-64-v1' in 44.3s.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  53.544 s
[INFO] Finished at: 2025-06-08T16:54:25-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.10.3:build (build-compat) on project psd4: Execution of C:\graalvm\bin\native-image.cmd @target\tmp\native-image-11575426220166669209.args com.ferra.launcherClass returned non-zero result -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions