Questions tagged [substratevm]

Substrate VM is a framework that allows ahead-of-time (AOT) compilation of Java applications under closed-world assumption into executable images or shared objects (ELF-64 or 64-bit Mach-O).

Substrate VM is a framework that allows ahead-of-time (AOT) compilation of Java applications under closed-world assumption into executable images or shared objects (ELF-64 or 64-bit Mach-O).

The project home is locate at Github: https://github.com/oracle/graal/tree/master/substratevm

13 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

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

How to compile Java to Native using GraalVM (SubstrateVM) in Eclipse

I have a research project (implemented in in Java 8) will several classes, several main functions and well over 10000 lines of code, in Eclipse. The program runs out of memory when the input is not small. I wanted to see if it will use less Stack…
4
votes
1 answer

Why does a GraalVM (SubstrateVM) native image uses so much less memory at runtime than a corresponding JIT build?

I'm wondering why a GraalVM (SubstrateVM) native image of a Java application makes it run where the runtime behavior will consume much less memory, yet if run normally, it will consume a lot more memory? And why can't the normal JIT be made to…
Didier A.
  • 4,609
  • 2
  • 43
  • 45
4
votes
1 answer

GraalVM error building using native-image-maven-plugin

I'm trying to use the native-image-maven-plugin to build a Java project but I'm getting the following error: [ERROR] Failed to execute goal com.oracle.substratevm:native-image-maven-plugin:19.1.0:native-image (default) on project yolo-parent:…
mfirry
  • 3,634
  • 1
  • 26
  • 36
2
votes
1 answer

GraalVM native-image how to read resource file from Jar

I have a jar file which contain some text file inside, I am trying to load the file as: InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path); It doesn't work as error showing : [SUB]…
Sam YC
  • 10,725
  • 19
  • 102
  • 158
2
votes
1 answer

How do I run Substrate in a way so that transactions get validated instantly for development pauperises?

How do I run Substrate in fake validating mode for development purposes (is there anything similar to --dev in geth where transactions are mined instantly)?
Andy B.
  • 181
  • 2
  • 9
2
votes
0 answers

Graal native image calling https throws Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

I am generating a Graal native image that makes an https call. The problem is it throws an exception when trying to make the call: @Controller("/") public class ExampleController { private static final Log LOG =…
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

GraalVM native image (Substrate VM - Darwin) with Java SE compatibility

SubstrateVM allow to compile JAVA application into macOS (Darwin) native executable. I can't find any place documenting that what kind of Java (SE) packages which SubstrateVM has implemented. That is the biggest concern I have when I am going to…
Sam YC
  • 10,725
  • 19
  • 102
  • 158
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
1 answer

Windows Javafx native compilation with GraalVM : error LNK2001

I had tried to compile my little Javafx program's who only change the windows wallpaper with gradle client-gradle-plugin version 0.1.27 on Windows 10 platform. gradle build : Stantard compilation for generate JAR, is successful. gradle nativeBuild,…
Guyard
  • 53
  • 6
0
votes
1 answer

Substrate VM generated binaries licensing issues

The SubstrateVM is licensed under GPLv2 and binaries compiled with the nativeimage ship with parts of the substractevm such as memory and thread management. Does that mean the binaries are also under GPLv2? Isn't the substratevm statically linked…
Luis Santos
  • 41
  • 1
  • 4
-1
votes
1 answer

How substratevm gc itself?

In graalvm project, gc is written in java in substratevm. What makes me curious is how to manage the memory of a garbage collector written in a language with gc. If he manages his own memory by himself, it may cause an infinite loop. Here I assume…