Questions tagged [graalvm-native-image]

449 questions
0
votes
1 answer

micronaut - java.lang.IllegalAccessError graalvm native compilation for external dependency

I'm trying to use a custom external library in a micronaut service (aws lambda via api gateway with graalvm native compilation) I have a few classes in my library that need to be used by jackson during the deserialization. So, I added my classes…
0
votes
1 answer

Quarkus graalvm native build dockerfile installation fails

I want to deploy a quarkus builder image via a Dockerfile. We are behind a proxy, I set all the linux proxy settings in upper- and lowercase. If I run the Dockerfile, I get an error message at the gu command to install the native image component.…
gpm
  • 31
  • 3
0
votes
1 answer

Generate native image quarkus rest-client-quickstart with centos-quarkus-maven:19.2.1 fails

Stack: Host os windows10 and centos-quarkus-maven:19.2.1 container openjdk version "1.8.0_232" OpenJDK Runtime Environment (build 1.8.0_232-20191008104205.buildslave.jdk8u-src-tar--b07) OpenJDK 64-Bit GraalVM CE 19.2.1 (build…
jcsim
  • 11
  • 2
0
votes
0 answers

Could not instantiate SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct?

I am writing an application to export data to an Excel sheet. I downloaded the Apache POI libraries and I included the following libraries to my project: - poi-4.0.1.jar While converting jar to native image using graalvm, I'm getting the following…
0
votes
0 answers

[native-image][build-time] Error: substitution target for io.quarkus.runtime.graal.QuarkusReplacement$GenMain

I get the below error when I try to build a native image from an uberjar Ran the below command: ./mvnw verify \ -Pnative -Dquarkus.test.native-image-wait-time=300 \ -Djavacpp.platform=${OSNAME}-x86_64 to build a native image…
Mani Sarkar
  • 115
  • 2
  • 9
0
votes
1 answer

Class does not implement org.graalvm.nativeimage.hosted.Feature error of Quarkus project with GraalVM native-image

I'm trying to compile sample Quarkus project to native image using GraalVM and Maven. Here is the code of my Quarkus service: package gk.testquarkus; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import…
Hleb
  • 7,037
  • 12
  • 58
  • 117
-1
votes
1 answer

maven cli: native version compiled with GraalVM

Maven starts a bit slowly, and maven daemon was created to help keep a warmed-up JVM running in the background at all times. But now that GraalVM exists, and its capacity to produce stand-alone executable with AOT, it shouldn't be necessary…
Jiehong
  • 786
  • 1
  • 7
  • 16
-1
votes
1 answer

What steps should I take before compiling my gRPC code with native-image?

I'm working on a project that uses gRPC and I want to compile it with GraalVM's native-image for better performance and smaller memory footprint. I have tried to use native-image directly, but there are a lot of problems with class initialisation. I…
yswdqz
  • 1
-1
votes
1 answer

How substratevm gc itself?

In graalvm project, gc is written in java in substratevm. What makes me curious is how to manage the memory of a garbage collector written in a language with gc. If he manages his own memory by himself, it may cause an infinite loop. Here I assume…
-1
votes
1 answer

I'm not sure about if GraalVM native image has all the advantages in any system environment

I did some experiments according to the following code, and obtained some experimental results. Mainly compare three cases: 1. without JIT, 2. JIT (default), 3. Execution file generated after Graal native-image The fastest execution result in my 8G…
何承育
  • 1
  • 2
-1
votes
2 answers

In graalvm, how to load tinylog.properties with native-image?

I use graalvm to build a jar with tinylog and work very good! But when I use native-image build a exe,tinylog only work with default setting. what can I do let tinylog can load my tinylog.properties with native-image? please~ thanks!
Yang Yang
  • 1
  • 1
-2
votes
1 answer

GraalVM Heap Size Setting Recommendations

What is the usual recommended heap memory setting for a production environment, 1 microservice written in Java, if compiled as a native image using GraalVM Community Edition? Should I specify both -xms and -xms to keep the minimum heap and maximum…
李志博
  • 55
  • 5
-2
votes
1 answer

How does Windows OS decides which JDK compiler to use(oracle JDK /GraalVM jdk), When multiple JDK's are present on 1 system?

I have Oracle JDK 17 installed on my system at the default location in my Windows 10 OS. I can use the javac compiler from the command line. I am going to install GraalVM JDK [java17] in my system (zip file) at a different location. Online docs have…
Rahul.In
  • 61
  • 9
1 2 3
29
30