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
24
votes
5 answers

cl.exe missing when building native app using GraalVM

I'm trying to build a native application using GraalVM and native-image. An error occures when starting the build process. It seems the cl.exe is missing in the classpath. Like mentioned on the GraalVM website, i've installed the…
tmmls
  • 510
  • 1
  • 4
  • 16
24
votes
3 answers

Difference between GraalVM and Jvm-Hotspot

Can someone explain the differences between GraalVM and Jvm-Hotspot, and how GraalVM is related to OpenJDK's HotSpot.
Mahesh Pujari
  • 493
  • 1
  • 9
  • 15
21
votes
2 answers

GraalVM (native-image) can not compile logback dependencies

I'm using the current version of community edition: GraalVM/native-image 22.1.0 My project has a dependency to the logging framework logback (version 1.2.3) If I want to compile my "all-in-one" jar with graalVM the native-image complains: Error:…
Tony
  • 360
  • 2
  • 11
20
votes
2 answers

Using GraalVM to run Java in AWS Lambda

Is there any ability to use GraalVM to run Java in AWS Lambda functions? I read a lot articles about cold starts of Java applications with GraalVM AOT (ahead-of-time) compilation feature and decreasing duration of that and I'd like to try to use it…
Hleb
  • 7,037
  • 12
  • 58
  • 117
20
votes
5 answers

Compiling Spring Applications to GraalVM Native Images

The GraalVM system apparently cannot compile a Spring application into a native image. Can we compile a subset of the Spring application -- say, as a separate library -- and then use that with the remainder compiled using the usual javac compiler?…
Alok P
  • 994
  • 1
  • 9
  • 18
19
votes
2 answers

How to fix "Try avoiding to initialize the class that caused initialization" with GraalVM native-image

I'm trying to create a native-image from a fat jar file with $ native-image -H:+TraceClassInitialization --initialize-at-run-time=org.slf4j,org.apache.log4j \ -jar ./my-jar-with-dependencies.jar And I'm getting those error messages…
Sammers
  • 1,038
  • 2
  • 8
  • 20
19
votes
2 answers

Does Java 9 include Graal?

I'm reading JEP 317. It says that Graal (a new experimental Java-based JIT compiler) will be part of JDK 10, but then it says that is already available in JDK 9. So, what's the point of JEP 317 then? Does Java 9 include Graal or not?
ZhekaKozlov
  • 36,558
  • 20
  • 126
  • 155
16
votes
2 answers

Nashorn alternative for Java 11

I am using the Nashorn JavaScript Engine in Java 11 which works fine except it will be deprecated soon. I have tried GraalVM which I find quite worse as it takes 13-14 seconds to execute a simple expression (e.g. 2+3). Is there any other alternative…
Sohaib Zafar
  • 183
  • 1
  • 1
  • 6
15
votes
2 answers

JavaBeanExecutable HV000254 missing parameter metadata for Java Enum

I upgraded my spring boot application from 1.5 to 2.3.5 (using the spring boot gradle plugin). When the spring boot application starts, I get the following warning 4 times: 2020-11-05 13:29:19.432 WARN 3931 ---…
ielkhalloufi
  • 652
  • 1
  • 10
  • 27
15
votes
2 answers

Can you embed GraalVM application in a browser?

GraalVM has so many surprising capabilities. But one thing I haven't seen, but would like to, is to be able to run a GraalVM application in a browser. Sources like this (Top 10 Things To Do With GraalVM) shows interop with Node.js, but not running a…
Jeff
  • 939
  • 10
  • 19
13
votes
1 answer

Does GraalVM native image increase overall application performance or just reduce startup times?

I’m looking at compiling my Java app using a GraalVM native image but all the documentation I have seen refers to reduced startup times but make no reference to improvements in overall application performance? So what can I realistically look…
Clancy Merrick
  • 855
  • 1
  • 8
  • 16
11
votes
2 answers

How to use graaljs ? Is there a place where to get a .jar file/files?

I use Java 8 and I use the default JavaScript Engine (Nashorn). I would like to see how it compares with the 'highly hyped' GRAAL JS. See: https://github.com/graalvm/graaljs https://www.graalvm.org/ particularly because I hear they want to…
Zo72
  • 14,593
  • 17
  • 71
  • 103
10
votes
1 answer

For a developer what is the difference between the CE and EE versions of GraalVM 19.3?

With the recent release of GraalVM 19.3 it had Java 11 support added which made it interesting to look at again for us. It is understandable that Oracle have two editions, the free community edition and the non-free enterprise edition, but they are…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
10
votes
6 answers

How to get Graal SDK packages to work without Maven?

I am developing a Java application that needs to execute JavaScript. Nashorn JS engine is about to get deprecated and the replacement is the set of APIs provided by Graal SDK which makes use of GraalVM. The virtual machine that essentially executes…
Patrik Nusszer
  • 460
  • 3
  • 13
9
votes
1 answer

How can Serializable.class not be assignable from Class.class?

In org.springframework.core.SerializableTypeWrapper (version 5.2.3), there is the following code at line 112: if (GraalDetector.inImageCode() || !Serializable.class.isAssignableFrom(Class.class)) { // Let's skip any wrapping attempts if…
Roman Puchkovskiy
  • 11,415
  • 5
  • 36
  • 72
1
2 3
50 51