Questions tagged [graalvm-native-image]

449 questions
0
votes
0 answers

GraalVM windows native-image installation Problem -R:-InstallSegfaultHandler

I am try install graalVM to windows machine, but i can`t install native image. When I enter the command: gu install native image I get this error: Start [ [ SubstrateSegfaultHandler caught a segfault in thread 0x0000018bf6515a00 ] ]siginfo:…
Daniil Baev
  • 69
  • 1
  • 8
0
votes
0 answers

Gluon GraalVM console

When compiling to native image and running it now days runs in "javaw" mode. I would like that the console window to be shown also like when running a Java UI application with "java" command. How to create a native image so that console window is…
Hugo Larson
  • 15
  • 1
  • 6
0
votes
0 answers

GraalVM Toolkit not found: sun.awt.X11.XToolkit

I am building a native-image using GraalVM (java11-linux-gluon-22.1.0.1-Final) for a java 11 project. The project was on java 1.8 but after converting it to java 11 for the GraalVM to work the build was successful but after i run the program i get…
0
votes
0 answers

Swing and JavaFX native image with GraalVM - no awt in java.library.path error

I am trying to create a native-image of a straightforward application using gluonfx-maven-plugin but it requires being a Swing application with JFrame and JFXPanel to run JavaFX UI as I am using Java Chromium Embedded Framework (JCEF) to replace…
Yash garg
  • 53
  • 1
  • 7
0
votes
0 answers

GraalVM native-image: Is it possible to start a Gradle daemon?

I want to build a GraalVM native image (CLI app) that uses/calls the Gradle Tooling API. In order to do that, a Gradle daemon must exist. So far it seems as though a native image cannot start a Gradle daemon. I suspect it is due to reflection and/or…
SwirlingJoe
  • 51
  • 1
  • 1
0
votes
0 answers

Quarkus Native : Java security exception

How to register AES for BC to the Quarkus native image? I am getting the following error java.security.NoSuchAlgorithmException: no such algorithm: AES for provider BC at sun.security.jca.GetInstance.getService(GetInstance.java:87) at…
user3577622
  • 145
  • 1
  • 1
  • 9
0
votes
0 answers

Response from java aws authorizer lambda changed to APIGatewayProxyResponseEvent from Iam Policy response pojo object

Created Java authorizer lambda to validate token. When I deploy aws jar works as expected, getting iampolicy as response. When Created native image using graalvm to minimize cold start time the response is changed to…
0
votes
0 answers

API gateway returns 500 internal server error with message null with java authorizer

Create AWS authorizer lambda in java to do token validation and create iam policy based on permission. Working as expected when we run using aws jar in aws env. When i converted to native image using graalvm getting error message as below with 500…
0
votes
0 answers

Impossible to process MIDI IN events in GRAALVM native image

I wrote a simple program that capture MIDI In events and print received message. Configuration is Windows10 + Graalvm 17 + Eclipse + standard MIDI keyboard. The program is a simple self-content file. All works properly using JVM. MIDI out events are…
java71
  • 1
  • 1
0
votes
1 answer

I want to find classes that implement a specific interface using spring native

I'm using spring native to build a native-image with graalvm, i want to find all classes that implements a specific interface I tried using Reflections but it didn't work, i used spring's ClassPathScanningCandidateComponentProvider too : It works…
0
votes
1 answer

Can't generate Graal VM native-image with --no-fallback from executable javafx fat jar

I have build an executable javaFX fat jar using java 17 and javafx 18: The JavaFXLauncher class calls the Main class which is necessary so that the executable JavaFX jar will work. It looks like this: public class Main extends Application { …
adragomir
  • 457
  • 4
  • 16
  • 33
0
votes
1 answer

How to integrate Micronaut (GraalVM) with JNI?

Does micronaut supports JNI. our requirement is like from micronaut app we need to communicate to embedded c/cpp. Can someone pls let me know if its possible or any Reference will help. Thanks in advance
0
votes
1 answer

Loading and playing audio on desktop, and mobile with GraalVM

I'm trying to load and play an AudioClip in 2 scenarios: On desktop during development (from an IDE) so that I can test that things work correctly during development. On mobile, using Gluon's GraalVM native solution. The media module is not…
user1803551
  • 12,965
  • 5
  • 47
  • 74
0
votes
1 answer

Moshi with Graal has all reflection registered but cannot map fields

I'm trying to use Moshi with GraalVM's native-image, and trying to get the reflection to work. I have my class: public class SimpleJson { private String message; public SimpleJson(String message) { this.message = message; } public String…
0
votes
0 answers

Does Authorize.net support have of graalVM?

Does anyone have information about Authorize.net support GraalVm or not? We are moving our project to Native Image and getting following exception in creating native image: Error: Unsupported features in 2 methods Detailed message: Error: Detected a…