Comments (4)
Hi, can you please share which version was working before? was that version working on iOS and Linux too?
Finally, the error is showing this message:
The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
did you try that?
from graal.
Hi, can you please share which version was working before? was that version working on iOS and Linux too?
Finally, the error is showing this message:
The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
did you try that?
My laptop is macOS, it can build successfully. The build error happened on Linux, the version is latest graalvm here https://github.com/optimism-java/hildr/blob/jdk22/docker/Dockerfile#L3 .
I have added all the classes in the trace, however still not works.
from graal.
Can you try to add this flag -H:ThrowMissingRegistrationErrors
and share your results?
Also, just to be sure, you are getting this error when building the native image, right?
from graal.
Can you try to add this flag
-H:ThrowMissingRegistrationErrors
and share your results? Also, just to be sure, you are getting this error when building the native image, right?
Got error when added this flag Error: Invalid native-image hosted-option -H:ThrowMissingRegistrationErrors at user
.
Yes, only build native image on ubuntu, macOS is OK.
from graal.
Related Issues (20)
- [GR-54926] Import resolution hook HOT 1
- native-image fails to set up Windows build environment HOT 2
- native-image not honoring abstract="true" and constructor overloading in the spring context.xml HOT 5
- Images with JFR will not build due to out of date substitution
- [GR-54994] Avoid duplicate JFR ThreadSleep events
- Native image fails to build inside Docker container on Mac with Apple Silicon using GraalVM CE 22.3.0 HOT 3
- Executable for JavaFX Modular CLI sample application built on Windows 11 with GraalVM 22.0.1+8.1 failed to run HOT 1
- Windows ARM64 Support HOT 1
- In my JNI library call a function in another share libray built by native-image, message : Segmentation fault HOT 4
- There is no way to know how to obtain the native-image binary tool. HOT 1
- MacOS only: Preferences.exportSubtree()/childrenNames() always kills process with "Fatal error reported via JNI: JVM_ArrayCopy called: Unimplemented" HOT 7
- [GR-55241] Performance regression of Scala compiler on GraalVM 17 -> 21 HOT 11
- GraalError: failed guarantee: value too large to fit into space HOT 1
- java.lang.Error: no ComponentUI class for: javax.swing.JRootPane HOT 6
- native-image-agent ceased to work as expected with AWT/JNI HOT 4
- [GR-55550] WASI signature conflict for fd_advise HOT 2
- native image fails to generate binary for a simple array manipulation HOT 1
- Cannot invoke "clojure.lang.Var.isBound()" because "clojure.lang.Compiler.LOADER" is null HOT 2
- docker pull container-registry.oracle.com/graalvm/native-image -> UNAUTHORIZED HOT 2
- Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.