Questions tagged [graalvm]

Graal is a just-in-time compiler for the JVM focused on peak performance and multi-language support. Graal offers performance advantages not only to Java code, but also to scripting languages such as JavaScript, Ruby, and R.

GraalVM is a universal virtual machine for running applications written in , , , , JVM-based languages like , , , , and LLVM-based languages such as and .

GraalVM removes the isolation between programming languages and enables interoperability in a shared runtime. It can run either standalone or in the context of OpenJDK, Node.js, Oracle Database, or MySQL.

Userful links:

Official site

GitHub

Wikipedia

752 questions
0
votes
2 answers

com.oracle.truffle.polyglot.PolyglotImpl (in unnamed module) cannot access class org.graalvm.polyglot.impl.AbstractPolyglotImpl

I tried to extend scaffolded quarkus demo, https://code.quarkus.io/, with polyglot code for GraalVM: @GET @Produces(MediaType.TEXT_PLAIN) public String hello() { String out = "From JS:"; try (Context context = Context.create()) { …
user555945
0
votes
0 answers

How to configure GraalVm 20.1.0 to run with sbt plugin for Intellji

with GraalVM Version 20.X.X I encounter problems configure Intellijs sbt plugin to run with latest graal package. When running my applications it fails the process with Error Message Could not found valid JRE in path $HOME/graal-20.1.0/. Previous…
Offset
  • 609
  • 1
  • 5
  • 22
0
votes
1 answer

Why does Truffle DSL makes an error when adding @Specialization annotations?

I am trying to implement the Truffle Framework into an existing language (INI) and I managed to run the language with basic features and Truffle. However, when I try to add @Specialization annotations to my methods, the compiler crashes and outputs…
Saauan
  • 1
  • 2
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
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…
0
votes
1 answer

Problem with installing R packages in GraalVM

I've installed graalvm-ce-java8-20.0.0 on MacOS Catalina. I can run simple R code from java: Context context = Context.newBuilder("js").allowAllAccess(true).build(); Context.newBuilder().allowNativeAccess(true).build(); Set
MLearner
  • 63
  • 7
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

How to use compiled source GraalVM to run a Java program?

I built the GraalVM JVM code from the project repository (GraalVM), using the following instructions. I think it completed successfully (didn't see any error messages), and it created a new folder graal\vm\mxbuild with what seems to be the…
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

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
0 answers

Problem during distribute file .ipa to Apple store: __CFCopyServerVersionDictionary

I create the ipa file with graalVM and client-maven-plugin. When I try to distribute into the apple Store I have this error. ITMS-90338: Non-public API usage - The app references non-public symbols in : __CFCopyServerVersionDictionary,…
Bad
  • 33
  • 5
0
votes
1 answer

Boost JUnit performance using GraalVM

Have read some high level articles about new GraalVM and thought it would be a good idea to use it for enhancing JUnit test performance, especially for big test suites which run in forked mode. According to SO question "Does GraalVM JVM support java…
Heri
  • 4,368
  • 1
  • 31
  • 51
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…