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
1 answer

Can I package my native-image Java application into a single directory

I am planning to use GraalVM's native-image tools to package an enterprise application. I've heard that they get packaged into single executable files which would not suit my use case. My application is a pretty large enterprise application which I…
tofuthefirst
  • 65
  • 1
  • 7
0
votes
1 answer

'npm' 'node' is not recognized as internal or external command, operable program or batch file for Windows

Installing nvm nodejs on Windows. nvm works fine but npm or node returns me "is not recognized as an internal or external command, operable program or batch file." I have included the paths to PATH: %JAVA_HOME%\bin;%MONGODB_HOME%\bin;C:\Program…
AHa
  • 63
  • 7
0
votes
1 answer

Micronaut @Value does not get the environmental variable when running native image

I've build a native image with graalvm and micronaut, but my native-image app cannot get the environmental variable using @Value annotation. When I try to run the app as jar, it works just fine. @Singleton public class WebComponentService { …
Lojza Ibg
  • 658
  • 9
  • 32
0
votes
1 answer

GraalVM - Exposing Java complex objects to JavaScript

Using GraalVM, to expose Java objects to JavaScript, I am using ProxyObject to wrap them. For this purpose, I am using ProxyObject.fromMap method like the following: ProxyObject exposedObject =…
The_Outsider
  • 146
  • 8
0
votes
0 answers

GraalVm Polyglot application - is it possible to evaluate kotlin script from java at runtime?

The GraalVM Polyglot API allows to embed and run code from guest languages in JVM-based host applications. I'm using native-image and additionally installed python so I can evaluate js and python scripts successfully from my java application…
Mikalai Lushchytski
  • 1,563
  • 1
  • 9
  • 18
0
votes
1 answer

Lost connection to MySQL server during aggregate UDF execution

I created a MySQL UDF in C++ and uploaded it into the MySQL's plugin directory. I am able to install the UDF in MySQL, but when I try to call it, the MySQL server stops. I am using visual studio 2019 to create the shared library(.dll in windows) on…
0
votes
0 answers

maven-client-plugin, GraalVM, Github Actions and the locale

I am trying to use GraalVM and native-image to compile a binary using Github Actions. And I got it working so far. But since I started including a JAR file with only _de.properties files, I am running into problems that GraalVM fails to use the…
taranion
  • 631
  • 1
  • 6
  • 17
0
votes
0 answers

maven-client-plugin, GraalVM and class initialization

I am trying to generate a native image of a JavaFX+FXML application using the GluonHQ client-maven-plugin. Creating the native image works fine, but when trying to execute it, it seems my configuration was wrong. FXML
taranion
  • 631
  • 1
  • 6
  • 17
0
votes
2 answers

Using Symbol.iterator to access iterator of ProxyObject

I have created a Java class that implements the Graal ProxyObject interface. I can access all methods and properties of that class via hasMember(String key) and getMember(String key) methods. But if I use something like myObject[Symbol.iterator]();…
0
votes
1 answer

How can I reduce the filesize of a graal native image?

I have this project: https://github.com/crinklywrappr/repoman It's very short (~150loc). When I run lein native-image it produces a massive 4gb3gb binary (at least on windows). I believe there are a couple of reasons for the…
crinklywrappr
  • 588
  • 5
  • 18
0
votes
0 answers

How do I resoove this Mac GraalVM Error When Running JavaScript Example

After installing the latest GraalVM on the Mac (GraalVM CE 20.1.0), and running this code segment: public static void main(String[] args) { // Context context = Context.create(); Context context =…
Morkus
  • 517
  • 7
  • 21
0
votes
1 answer

Graal VM components required for a Node calling Java polyglot application

I planning to GraalVM to merge two (services one using Node and other based on Java) with Node as the main entry point language which calls classes/constructs in Java. I was reading about GraalVM but was not able to find below information in…
Vijeenrosh P.W
  • 359
  • 1
  • 3
  • 8
0
votes
1 answer

Hot Reloading on GraalVM

I've recently upgraded from OpenJDK 8 to GraalVM 20.1.0 (OpenJDK 11.0.7). Does anyone have any ideas how to implement hot class reloading (or at least web asset redeployment). Spring-Boot-Devtools doesn't pick up the changes. HotSpotAgent (DCEVM)…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
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…