Questions tagged [graalvm-native-image]
449 questions
0
votes
1 answer
Java call C library using native-image from GraalVM
I have a simple project: https://github.com/MarcoLunar/native-pid-test
All what it is doing is calling getpid from C library. Project is as simple as:
public static void main(String[] args) throws Exception {
System.out.println("start");
…

mel4jdev
- 13
- 5
0
votes
1 answer
Quarkus GraalVM native image DateTimeFormatter and Localization
I tried to use localization in java to print date with local style.
I already make a similar functionality with numbers and currencies but I failed to apply the same behavior to date.
As I learning when I posted this topics few days ago, GraalVM…

Stéphane
- 63
- 6
0
votes
1 answer
ADD MAVEN_OPTS Intellij
I'm trying to package a project using native-image-maven-plugin from GraalVM. I don't want to install native-image-tool, and I receiving the following error:
Image building on Java 11+ without native-image requires…

Ikaro
- 165
- 1
- 12
0
votes
1 answer
Using Gluon maven-client-plugin, How do you add Graalvm flags such as --initialize-at-run-time, when running mvn client:compile
Development environment:
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.6, vendor: Oracle Corporation, runtime: /home/linuxlp/opt/graalvm/graalvm-svm-linux-20.1.0-ea+28
Default locale: en_US, platform encoding: UTF-8
OS name:…

Chris Grimes
- 11
- 6
0
votes
1 answer
TypeError: invokeMember GraalVM native-image
I'm trying create a native-image with GraalVM, my code:
import org.graalvm.polyglot.HostAccess;
public class Console {
@HostAccess.Export
public void print(String msg){
System.out.println(msg);
}
}
Then I call the code itself…

Alisson Pedrina
- 26
- 1
- 3
0
votes
0 answers
Developing a native-image JavaFx-11 app. Upgraded from ubuntu 19-10 to 20-04 and now app doesn't deploy to desktop. What has changed?
The application continues to deploy to the desktop and iphone when developed and deployed on a macBook Pro, and it was deploying previously on ubuntu 19-10 desktop. So I am assuming a library or script change is preventing the application deployment…

Chris Grimes
- 11
- 6
0
votes
0 answers
GraalVM native-image Java i18n Locale problem
I try to make a program using Locale. I want compile natively this program with GraalVM but Locale don't have the same behavior after native compiling.
I success to isolate the problem with the following program :
import…

Stéphane
- 63
- 6
0
votes
1 answer
How to configure the port of a Spring Boot app that's natively compiled by GraalVM Native Image from command line?
Spring Boot introduces GraalVM Native Image support with the introduction of the Spring Graal Native 0.6.0 feature. Now if we have a successfully compiled native Spring Boot app, how can we dynamically change the port of an application at startup on…

jonashackt
- 12,022
- 5
- 67
- 124
0
votes
1 answer
Is there a pom.xml option for H:+TraceClassInitialization when building a graalvm executable?
I am building a native GraalVM native image by running:
./mvnw package -Pnative
This throws an error :
Error: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image run time. To see how…

chughts
- 4,210
- 2
- 14
- 27
0
votes
2 answers
Java scheduler that works with native image compilation by GraalVM
I have the app on top of Quarkus framework. The main functionality of the app - simple REST API for scheduling some tasks (now it just posts some message to the log).
Scheduling functionality I implemented with Quartz framework and in common it…

Hleb
- 7,037
- 12
- 58
- 117
0
votes
0 answers
Microprofile @Fallback not working in native image mode
Having the following code running on Quarkus:
@Singleton
@RegisterForReflection
public class StoreService {
private static final Logger LOGGER = Logger.getLogger(StoreService.class);
@Inject
@RestClient
StoresApiClient client;
…

Tomek Zaremba
- 353
- 1
- 4
- 7
0
votes
0 answers
Error wher use Json serialization on graalVM
I would like to use rest API to retrieve info for my app write whith gluon-mobile and graalvm. How I can serialize my data? I have tried Gson and Jackson and on ios Device the result string of serialization is null

Bad
- 33
- 5
0
votes
0 answers
Integrate into project custom reflectionconfig-arm64-ios
I am using graalvm to create my IPA, everything seems to work except for the fact that the classes used with reflection are not linked. I generated the file in question to make explicit the classes that require me to link at compile time but I can't…

Bad
- 33
- 5
0
votes
1 answer
How to install gu native-image for native Quarkus
I am following this official tutorial for native Quarkus but can't run the following step:
# 3. Install the native-image tool using gu install:
${GRAALVM_HOME}/bin/gu install native-image
The ${GRAALVM_HOME}/bin directory does not exist in the…

Evandro Pomatti
- 13,341
- 16
- 97
- 165
0
votes
1 answer
Quarkas - Unable to build - Caused by: java.lang.RuntimeException: Attempted to mix @NativeImageTest
I am trying to figure out why running a ./mvnw package is leading to the error
Caused by: java.lang.RuntimeException: Attempted to mix @NativeImageTest and JVM mode tests in the same test run. This is not allowed.
I am trying to build up towards a…

gboro54
- 1
- 1