Questions tagged [graalvm-native-image]

449 questions
0
votes
0 answers

java.lang.UnsatisfiedLinkError: no *** in java.library.path GraalVM

I am trying to migrate an application to native, using graalVM. This app needs a dependance for crpyto purpose. It is currently using this lib. This app is a windows one. This lib use a DLL (pkcs11wrapper.dll) included in the jar. I am currently…
Aurelien
  • 1
  • 1
0
votes
1 answer

Native image doesn't respect date format with @JsonFormat

With the following field configuration @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") When I run the project with java the result of printing the date is: {"name":"test","date":"2021-11-20 23:12:12"} However with…
jics
  • 1,897
  • 3
  • 15
  • 24
0
votes
1 answer

Quarkus: connect to cloudsql db (gcp) with native image

I've set up a prod configuration for my datasource to connect to a GCP MySQL instance, basically following this tutorial: https://quarkus.io/guides/deploying-to-google-cloud#using-cloud-sql Configuration…
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
0
votes
1 answer

How to defiine Quarkus Heap Space Size

I have a Quarkus application that transforms large sets of data. At some point I always get an Out Of Memory Exception. I think when I am running the application in "Java Mode" the JVM xmx flag should work to give Quarkus more memory. Is that…
menevs
  • 3
  • 2
0
votes
1 answer

Does JaVers work with GraalVM native images?

GraalVM compiles Java programs into native executables. Certain Java features, such as reflection, are not available or limited there. Since JaVers uses reflection: Does JaVers fully work in a GraalVM native executable?
Karsten Silz
  • 1,036
  • 11
  • 18
0
votes
1 answer

Why can't GraalVM native image compiler build an image without any additional information?

The compiler consumes a JAR-file: native-image [options] -jar jarfile [imagename] [options] so it can be possible to scan all classes and resources without reflect.json, resources.json, etc. Why do we need to specify all files getting from the…
0
votes
0 answers

JavaFX Windows Native Image HelloFX example fails: java.lang.NoSuchMethodError: com.sun.glass.ui.win.WinView.notifyResize(II)V

I tried to build and start Gluons HelloFX example as native image for Windows. Building was successful but starting the resulting executable fails with this exception: ==================== RUN TASK ==================== [SUB] Nov 01, 2021 10:33:41 PM…
Sven Döring
  • 3,927
  • 2
  • 14
  • 17
0
votes
0 answers

How to build an installer with sbt

I am currently having a Graalvm native image executable, and I need to build an installer that would ask users to provide an installation location, copy the native image executable to the location, and write a registry. What would be the best…
omastik
  • 15
  • 6
0
votes
0 answers

Java obfuscation using Proguard before native-image?

Is there any benefit of using Proguard for obfuscating java app, before compiling it to the executable binary using Graalvm's native-image? As far as I understand, Proguard is only obfuscating class/method/param names, which are anyway not present…
Bojan Vukasovic
  • 2,054
  • 22
  • 43
0
votes
1 answer

GraalVM TypeHint not included in reflect-config.json

As mentioned above, when I try to include a Hint, Spring-AOT plugin (spring-aot:generate) is not detecting the annotation and the reflection is not included in the reflect-config.json Here is the code where I use the annotation. @TypeHint( …
Liki
  • 138
  • 1
  • 7
0
votes
0 answers

Quarkus: How to increase maximum heap space while building native images with Gradle?

I am trying to build a native image of a Quarkus application with Gradle. I execute: ./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true It fails with the following error: Execution failed for task…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
0
votes
1 answer

unable to build native image using quarkus graalvm app

I am trying to build a java app with quarkus and graalvm. I am currently using graalvm version graalvm-ce-java11-windows-amd64-21.2.0 and updated the JAVA_HOME, GRAALVM_HOME and system path as well. For MSVC i have downloaded visual studio and…
sujays
  • 151
  • 12
0
votes
1 answer

maven No plugin descriptor found at META-INF/maven/plugin.xml in springboot

I'm tryying to use GraalVM native-image to compile a spring-boot project to build an .exe file. my pom.xml :
queue
  • 43
  • 4
0
votes
1 answer

quarkus + java mq client + com.sun.jmx.mbeanserver.JmxMBeanServer

Hi below is the command I am running to create a native image of an existing java mq client I have. C:\Users\cmishr4\work\graalvmcejava112110\bin\native-image.cmd -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager…
0
votes
0 answers

Problems for Java program using JavaCPP converts to GraalVM native image in micronaut framework

Environment: OS: Ubuntu 20.04 64bit LTS. JDK: 11.0.10 JavaCPP: 1.5.6 OpenCV: 4.5.3 Micronaut: 2.5.9 Recently I have a project regarding computer vision. In this project, it uses Micronaut as the main framework. And it also uses OpenCV built with…
wureka
  • 731
  • 1
  • 11
  • 26