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

GraalVM native-image compile Java libraries into iOS framework/libraries

GraalVM native-image allow us to convert Java libraries into local executable. It also allow to compile to shared library as mentioned https://www.graalvm.org/docs/Native-Image/user/README An native image can be built as a standalone executable,…
Sam YC
  • 10,725
  • 19
  • 102
  • 158
8
votes
1 answer

Is there a way to use kotlin.random.Random inside GraalVM native image

I tried to build a simple App with Kotlin that uses kotlin.random.Random class on a GraalVM native image. But this fails at runtime. Stacktrace see below. As a workaround you can use the java standard java.util.Random class. Can someone tell me how…
Oliver
  • 332
  • 1
  • 11
8
votes
1 answer

When and why is the SubstrateVM Framwork Required for a Native Image?

I read about the GraalVM and the SubstrateVM framework. I understand that the native-image command can be used to create native applications from Java source files as follows: $ javac Hello.java $ native-image --no-server --no-fallback Hello $…
aboger
  • 2,214
  • 6
  • 33
  • 47
8
votes
3 answers

Micronaut serverless application using DynamoDB and Graal custom runtime throws Cannot construct instance of com.amazonaws.partitions.model.Partitions

SAMPLE PROJECT AVAILABLE HERE: https://github.com/codependent/micronaut-aws-lambda-proxy-graal I have a Micronaut application deployed on Amazon AWS as a Lambda function. It is compiled into a GraalVM native image and run using an AWS Lambda Custom…
codependent
  • 23,193
  • 31
  • 166
  • 308
8
votes
1 answer

GraalVM: Access to native code is not allowed by the host environment

I just recently setup a Centos7 VM to play around with GraalVM. I downloaded graalvm-1.0.0-rc1, installed Netbeans8.2, and downloaded the FastR extension (via gu). I then wrote a simple java program to test some of the various supported languages.…
DQMan
  • 115
  • 6
7
votes
1 answer

Is there a way to create native-binary from Jetpack Compose Desktop app using GraalVM?

I want to create a small binary out of my Compose desktop app. Following are the options out of the box with Compose: Create native package with java runtime (great, but the size is very big) Create an Uber (fat) Jar (but it requires Java 11 to…
7
votes
2 answers

How to run Haskell on GraalVM?

I tried to get Haskell running on GraalVM, but I wasn’t able to include the runtime environment. In Rust it’s just a matter of specifying the correct path for the Rust standard library, as described here. Is there an equally simple solution for…
adius
  • 13,685
  • 7
  • 45
  • 46
7
votes
1 answer

which compiler is used when -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler

My JVM has -server option, I believe it enables JVM to use C2 compiler which is meant to use for server applications which tend to run longer than client counterparts. However, GRAAL JIT (which is enabled by -XX:+UnlockExperimentalVMOptions…
Sagar
  • 5,315
  • 6
  • 37
  • 66
7
votes
1 answer

Could someone please explain the differences between Graal, GraalVM, Truffle & SubstrateVM?

I know these technologies are all related but could someone please explain what each one is used for and how they fit together?
Clancy Merrick
  • 855
  • 1
  • 8
  • 16
7
votes
3 answers

Does GraalVM JVM support java 11?

How build GraalVM JVM for Java 11? (I don't see any official distributives only java 8)
Levik
  • 111
  • 1
  • 6
6
votes
1 answer

Micronaut Cannot Build Native Image Graalvm

I'm trying out the Micronaut Application as a Graalvm native image found here. But when I'm running the ./gradlew buildNativeLambda I'm having these exception: Error: Image build request failed with exit status…
berty
  • 160
  • 9
6
votes
0 answers

Compile Java to WebAssembly

I am trying to compile Java to WebAssembly. Is this possible? My initial approach was to take the example described in this blog post The approach described in the blog post is as follows: Install GraalVM and add native-image and LLVM toolchain to…
auser
  • 6,307
  • 13
  • 41
  • 63
6
votes
1 answer

Running spring boot native application, cannot load resource file

I'm trying to compile a Spring Boot application to a native application and run this using docker. I'm using spring-graalvm-native version 0.8.5 and Spring Boot version 2.4.1. I'm trying to build the docker container using spring-boot-maven-plugin…
Dorin
  • 2,167
  • 4
  • 20
  • 32
6
votes
2 answers

Gluon client maven plugin for JavaFX on Windows fails to compile?

I've been experimenting with Gluon's client maven plugin on a Windows machine for a project of mine. I decided to try out one of their "hello world" examples, here. I followed all of the steps on how to configure the machine. However, I've…
Evan Zheng
  • 135
  • 8
6
votes
1 answer

Cannot compile simple "Hello World" Java application with native-image on Windows

I'm trying to compile a simple Java Hello World application to native code using the native-image utility provided by GraalVM on Windows but I always run into errors (see below). HelloWorld.java: public class HelloWorld { public static void…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
2
3
50 51