Questions tagged [graalvm-native-image]
449 questions
0
votes
0 answers
Use JNI to call graalvm native build shared library
I am learning graalvm, and I was wondering if it is possible that I can use JNI to call a java native-built shared library?
Let's say there are two Java source codes, the first would be compiled as a shared library ahead of time with graalvm, and…

N.Shinoda
- 11
- 2
0
votes
1 answer
GraalVM Native Image Manual Proxy Configuration
We migrated an appication to GraalVM docker image, Building a Native Image Using Buildpacks. The application previously running on JDK 8 and Spring boot 2.2.0.RELEASE. We migrated to JDK-17 and SpringBoot 3.0.2 as GraalVM latest prerequisite. The…

Sagar
- 21
- 2
0
votes
1 answer
GraalVM native JavaFX application visual bugs
I have created a new GraalVM + JavaFX project with simple interface, but instead of this:
I can see only this:
I have compiled my project with/on:
Solus OS (Linux) with kernel 6.1.5
Java 17 provided by GraalVM SDK (below)
GraalVM v22.1.0.1…

SoKnight
- 33
- 7
0
votes
1 answer
How to solve iOS Linker Error `ld: framework not found UIKit` when using `mvn gluonfx:sharedlib -Pios`?
I have a linker error when using Gluon to deploy to iOS.
Following the instructions in gluon-samples/HelloSharedLib and the instructions in the Gluon Documentation. I have the following versions installed. We have a paid Apple Developer…

endonym
- 3
- 2
0
votes
1 answer
Spring Boot NativeImage compilation fails on: "Could not find target method: private org.springframework.boot.Banner"
I have problem with compilation of my Spring boot application.
TL;DR: Error: Could not find target method: private org.springframework.boot.Banner…

martin
- 1,707
- 6
- 34
- 62
0
votes
1 answer
Exception seen in Jersey Init, Spring Boot 3.0.1, Spring Boot Jersey Starter, GraalVM 22.3, Java 17 & 19
Attempting to get sample application on Spring Boot 3.0.1, Spring Boot Jersey Starter, GraalVM 22.3, Java 17 & 19. Maven Native Image creation is successful, executable starts, but on the first request to sample end point, there seems to be an…

Vasuki B K
- 1
- 1
0
votes
0 answers
How to compile Graal Native Image on MacOs BigSur?
When I try to compile with ./gradlew nativeCompile
java -version
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build…

user432024
- 4,392
- 8
- 49
- 85
0
votes
1 answer
Spring 3 native compilation with multiple bean implementations for different environments
I have been evaluating the support of Spring Boot 3 for native compiling with native-image and so far I am very impressed. It has the potential to drastically reduce our cloud spend.
I note in the documentation, one of the major changes is the…

william00179
- 71
- 6
0
votes
1 answer
SpringBoot 3 AOT/GraalVM/Native: Build native binary from Windows to run on Linux
Small question regarding SpringBoot 3 and the new AOT Native binary with GraalVM please.
I am building my java SpringBoot 3 app on a Windows machine (no judging please!) in order to scp the binary on a Linux host.
I followed the GraalVM installation…

PatPanda
- 3,644
- 9
- 58
- 154
0
votes
0 answers
GraalVM native-image: how to disable auto-detected internal GsonFeature?
During my GraalVM native image build GsonFeature is auto detected and enabled:
1 user-specific feature(s)
- com.oracle.svm.thirdparty.gson.GsonFeature
This Feature registeres reflective access to sun.misc.Unsafe that I don't use. I want to disable…

Sokolof
- 2,271
- 2
- 19
- 30
0
votes
1 answer
Failed to find class `com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer` for handlingvaluesof type `java.sql.Timestamp`
Failed to find class `com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer` for handling values of type
`java.sql.Timestamp`, problem: (java.lang.ClassNotFoundException)…

Sam
- 1
0
votes
1 answer
Quarkus build native with graalvm polyglot embed script language runtime error
Quarkus and Graalvm version
quarkusPluginId=io.quarkus
quarkusPluginVersion=2.15.3.Final
quarkusPlatformGroupId=io.quarkus.platform
quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformVersion=2.15.3.Final
graalVmVersion=22.3.0
I want use Quarkus…

brown lyon
- 1
- 1
0
votes
0 answers
UnresolvedElementException: Discovered unresolved method during parsing: org.codehaus.janino.ScriptEvaluator.setExtendedType(java.lang.Class)
I'm writing an application using Quarkus and GraalVM to build a native image. I use scriptella for ETL and the build keeps failing for Janino driver. As far as i can tell, there is a deprecated method…

Ahmed Attia
- 1
- 2
0
votes
1 answer
Running spring boot native application getting the following error
While running a spring boot 3 native application on bellsoft-liberica-vm-core-openjdk17-22.3.0 I'm getting this following error after creating the image.
./target/blog: error while loading shared libraries: libfreetype.so: cannot open shared object…

Tanbin Mitul
- 3
- 1
- 4
0
votes
1 answer
GraalVM native image runtime exception: class is instantiated reflectively but was never registered
I got this runtime exception when running the generated native image:
Exception in thread "Thread-1" java.lang.IllegalArgumentException: Class com.mysys.myclient.net.MyClientEndpoint$Transceiver[] is instantiated reflectively but was never…

zipper
- 377
- 1
- 5
- 18