Questions tagged [graalvm-native-image]

449 questions
0
votes
1 answer

Error building native image with GraalVM native-image-maven-plugin

I'm creating a native image for a JavaFX application using native-image-maven-plugin with GraalVm 21.0.0.2. When I try to execute it after the build end successfully I get the following error: Exception in thread "main"…
Ikaro
  • 165
  • 1
  • 12
0
votes
0 answers

JavaFX Android application using client-maven-plugin / GraalVM and the BACK event

I managed to create a JavaFX application for Android using the client-maven-plugin from Gluon. Everything is fine so far, but I did not manage to react to the native BACK navigation on Android. I tried adding key event listeners to the scene - that…
taranion
  • 631
  • 1
  • 6
  • 17
0
votes
0 answers

Gluon Mobile project builds native-image but fails to run it (on Linux)

I am testing the Gluon Mobile framework, and have made a small application based on the Afterburner with FXML template from the IntelliJ Idea Gluon plugin. The application builds and runs successfully on the JVM and I am also able to build a native…
0
votes
1 answer

Graal native image of Spring Boot app fails when scheduling enabled

Does a native Spring Boot app support scheduling ? A very simple Spring Boot app that has these annotations on it fails to start when it's compiled as a native image using graal. @SpringBootApplication @EnableScheduling @EnableAsync public class…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
0
votes
1 answer

Used mybatisPlus. Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException

I used Springboot+MybatisPlus in the project When I did not add MybatisPlus, I could successfully build a native image and run it successfully. Join MybatisPlus, although it can be compiled and generated native image, but the running error. Error…
0
votes
0 answers

Gluon Client Build Windows x86_64 fails

I followed all the instructions in Gluon Docs, and when I compile I get a weird [Thu Dec 03 13:16:47 IST 2020][INFO] [SUB] Fatal error:java.lang.NoClassDefFoundError: javafx/application/Application How do I fix this? I am using the latest GraalVM…
rnayabed
  • 113
  • 10
0
votes
0 answers

Migration from jfxmobile Gradle to Gluon Client Maven plugin

I try to migrate my project based on the jfxmobile Gradle plugin to new Gluon Client Maven plugin. I proceed as follows: I generated a project with a same names structure as old project in NetBeans. I deleted src folder and replaced with the…
0
votes
1 answer

Gluon Mobile GraalVM iOS 14.1

Since I’ve updated Xcode to version 12.2 because of update iOS to 14.1 I’m not able to build my Gluon Mobile project. An error occurs at the end of the build process by linking. I saw that the object files. They are created but not linked. Object…
0
votes
1 answer

Can I package my native-image Java application into a single directory

I am planning to use GraalVM's native-image tools to package an enterprise application. I've heard that they get packaged into single executable files which would not suit my use case. My application is a pretty large enterprise application which I…
tofuthefirst
  • 65
  • 1
  • 7
0
votes
0 answers

GraalVM native-image with Java 8 build fails with error com.oracle.svm.core.hub.DynamicHub.getGenericInfo() method not available in this platform

I am working hard to generate native-image for Windows of my JavaFX application which is compiled with Java 8 JDK. Native image is generating with graalvm 20.2.0. with --no-fallback option. I am getting a strange message that method with name…
AbsoluteDev
  • 154
  • 2
  • 9
0
votes
1 answer

Micronaut @Value does not get the environmental variable when running native image

I've build a native image with graalvm and micronaut, but my native-image app cannot get the environmental variable using @Value annotation. When I try to run the app as jar, it works just fine. @Singleton public class WebComponentService { …
Lojza Ibg
  • 658
  • 9
  • 32
0
votes
1 answer

running graals native spring cloud function example

I am trying to run the aws function sample in spring-graals, the 'java' version works fine but when I test the 'native' version, I see the following error in the console. Exception in thread "main" java.lang.IllegalArgumentException: Cannot…
0
votes
1 answer

Cannot build an executable (GraalVM / Quarkus): Unsupported method java.lang.Class.getNestHost() is reachable

I have a small Quarkus webapp written in Java 11. It uses the hibernate-orm extension to connect to a Postgres DB and perfom basic CRUD operations. The apps runs fine on the JVM but the native-image builder in a container fails. I've tried using…
kosmičák
  • 1,043
  • 1
  • 17
  • 41
0
votes
1 answer

How can I reduce the filesize of a graal native image?

I have this project: https://github.com/crinklywrappr/repoman It's very short (~150loc). When I run lein native-image it produces a massive 4gb3gb binary (at least on windows). I believe there are a couple of reasons for the…
crinklywrappr
  • 588
  • 5
  • 18
0
votes
0 answers

GraalVM native-image with spring boot postgresql just won't build

I am currently experimenting with the GraalVM native-image tool. The goal is to run a spring boot webapp in postgresql. My project compiles with mvn clean package and the .JAR runs like a charm with docker-postgresql, yet I am unable to build a…