You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed the given advice, suspected reachability-metadata.json was not being read. Corrected that error. got another error about jni section, so reran
application with agent, rebuilt jars and mods again with new data, but back now to complaint that makes no sense to me. I figured I would have some trouble
with javafx libraries, but not getting that far.
I expected trouble from javafx libraries. but am not getting that far. The samples I have seen all use older special gluon modified versions.
I am trying to understand requirements. I tried the maven plugin, but that did not help, and the output was not useful in determining the problems.
Being a novice with maven I gave up for now on using it for jlink, jpackage, or native-image. Running them from scripts on the command line has provided
more insight and success. I hope I have provided enough information. Any suggestions on things to try would be appreciated.
Actual Behavior
./jarb -XX:MissingRegistrationReportingMode=Warn
Note: this run will print partial stack traces of the locations where a class org.graalvm.nativeimage.MissingReflectionRegistrationError would be thrown when the -H:+ThrowMissingRegistrationErrors option is set. The trace stops at the first entry of JDK code and provides 8 lines of context.
org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively access class
org.newfdog.jar.Jarbrowser
without it being registered for runtime reflection. Add org.newfdog.jar.Jarbrowser to the reflection metadata to solve this problem. See https://www.graalvm.org/latest/reference-manual/native-image/metadata/#reflection for help.
java.base@24/java.lang.Class.forName(DynamicHub.java:1497)
javafx.graphics@24/javafx.application.Application.launch(Application.java:299)
jarbrowser@1.0.0/org.newfdog.jar.Jarbrowser.main(Jarbrowser.java:125)
Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: org.newfdog.jar.Jarbrowser
at javafx.graphics@24/javafx.application.Application.launch(Application.java:311)
at jarbrowser@1.0.0/org.newfdog.jar.Jarbrowser.main(Jarbrowser.java:125)
Caused by: java.lang.ClassNotFoundException: org.newfdog.jar.Jarbrowser
at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:215)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:183)
at java.base@24/java.lang.Class.forName(DynamicHub.java:1509)
at java.base@24/java.lang.Class.forName(DynamicHub.java:1497)
at javafx.graphics@24/javafx.application.Application.launch(Application.java:299)
... 1 more
Steps to Reproduce
Run native-image
run the image created ./jarb -XX:MissingRegistrationReportingMode=Warn
I created a jarb.nib, but it is not accepted, with the message FileType not allowed: .nib
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered:
Hi, Thank you for reaching out, could you please verify if this issue is still present in the latest GraalVM for JDK 24.0.1
also kindly provide a small reproducer code for this issue, thanks
Thanks for the response, will try the latest, and report back.
Note one of the problems in doing a reproducer is the failure of GitHub to accept a .nib file that if I read correctly will gather the needed things to do the reproduction.
Uh oh!
There was an error while loading. Please reload this page.
Describe the Issue
Followed the given advice, suspected reachability-metadata.json was not being read. Corrected that error. got another error about jni section, so reran
application with agent, rebuilt jars and mods again with new data, but back now to complaint that makes no sense to me. I figured I would have some trouble
with javafx libraries, but not getting that far.
See error at bottom.
from reachability-metadata.json
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "24" 2025-03-18
Java(TM) SE Runtime Environment Oracle GraalVM 24+36.1 (build 24+36-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24+36.1 (build 24+36-jvmci-b01, mixed mode, sharing)
JavaFX version 24
Operating System and Version
MacOS Sequoia 15.4.1
Troubleshooting Confirmation
Run Command
Expected Behavior
I expected trouble from javafx libraries. but am not getting that far. The samples I have seen all use older special gluon modified versions.
I am trying to understand requirements. I tried the maven plugin, but that did not help, and the output was not useful in determining the problems.
Being a novice with maven I gave up for now on using it for jlink, jpackage, or native-image. Running them from scripts on the command line has provided
more insight and success. I hope I have provided enough information. Any suggestions on things to try would be appreciated.
Actual Behavior
Steps to Reproduce
Run native-image
run the image created ./jarb -XX:MissingRegistrationReportingMode=Warn
I created a jarb.nib, but it is not accepted, with the message FileType not allowed: .nib
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: