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
-1
votes
2 answers

What are the security risks on making public the command java.lang.Runtime.exec(String command)

I am trying to fragment my custom applications, while keeping the total design standard. I have recently learned compiling java applications to native exe files on windows with graalvm. I am thinking of chaging the design from using many complex…
-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
1 answer

Micronaut native image ignores properties

I am trying to build graalvm native image of my micronaut application. I see the werid issue that some of the properties from application.yaml are ignored, though when I run the app via ./gradlew run all works fine. Here is my yaml micronaut: …
Alex Bondar
  • 1,167
  • 4
  • 18
  • 35
-1
votes
1 answer

How to get fields and invoke methods of js objects, from java, in Graal-JS?

I have been using GraalVM to execute Javascript from java. But i have a problem: I don't know how to get fields or invoke methods of a js object from java. This is my code, java: public static class JavaMethods { public void printWidthOf(Object…
user17034580
-1
votes
1 answer

fillcover red in initializer dependencies - Quarkus native

I try to build a native container with Quarkus (with -Pnative flag), I use -H:+PrintClassInitialization to generate the class initializer reports. I see a initilizer_dependencies_yyyymmdd_hhmmss.dot file is generated; in this file, I see some…
Jerry
  • 97
  • 5
-1
votes
1 answer

Graal-js is throwing File system provider error

I am trying to run simple code - Added all the dependencies as mentioned in this document :https://github.com/graalvm/graal-js-jdk11-maven-demo/blob/master/pom.xml ScriptEngine graaljsEngine = new…
-1
votes
1 answer

What makes GraalVM Native Image run so lightning fast?

What makes GraalVM Native Image run so lightning fast for so many different programming languages? Nathan Aw (Singapore)
Nathan Aw
  • 545
  • 5
  • 18
-1
votes
1 answer

Unable to load JVMCI shared library: libcrypt.so.1: cannot open shared object file: No such file or directory

When i tried to do a task that involved the java virtual machine that i have installed(in my case GraalVM 19 CE) the error is throw: Error occurred during initialization of VM Unable to load JVMCI shared library: libcrypt.so.1: cannot open…
cjeronimomx
  • 806
  • 10
  • 9
-1
votes
1 answer

Is the GraalVM catalog down?

Was trying to get R installed via gu command, but got this: $ gu install R Downloading: Component catalog from www.graalvm.org Error: Error downloading component catalog from…
Morkus
  • 517
  • 7
  • 21
-1
votes
1 answer

Run Clojure GraalVM native image on AWS Lambda custom runtime

Is there an easy way to deploy a Clojure application compiled with GraalVM native-image tool to AWS Lambda custom runtime?
-1
votes
1 answer

GraalVM security of ahead of time compilation (AOT)

I apreciate head of time compilation of bytecode into native code, but doesn't it reintroduce security issues? E.g. isn't it missing runtime checks like checks for array bounds? Okay if you compile trusted Java code it probably will not do anything…
user573215
  • 4,679
  • 5
  • 22
  • 25
-2
votes
0 answers

Can I use an AOT compiler to compile Minecraft game into an EXE file?

Minecraft JE (Java Edition) needs JVM to run. Is it possible to compile it into an EXE file via AOT compiler of GraalVM? If possible, how should I do? I installed GraalVM and native-image tool but I don't know the main class of Minecraft.
-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
-2
votes
1 answer

GraalVm with Spring MVC

Can I run spring mvc project with graalvm? (Spring MVC project and not Spring Boot) If Yes: Is there any performance improvement? (Any spring mvc example with graalvm would be helpful.) If No: why?
Rajat Gupta
  • 3
  • 1
  • 7
1 2 3
50
51