Recommended way to embed JVM in program C with NO library?

What is the recommended way to embed the JVM in program C with the library NO . This means that the JVM is an eDSL execution engine. (Not the whole Java platform environment) I'm trying to use a different JVM-based language instead of Java itself.

+6
source share
2 answers

This may seem insane, but I would suggest embedding Mono and using IKVM to run your Java code. Mono is a relatively small and portable virtual machine that is suitable for embedding (you can even bind it statically to your application), and IKVM is a faithful implementation of Java 1.6 that can work even with monsters like Eclipse.

Using the Mono / IKVM combination, you can even compile your Ahead-of-Time application into x86 machine code (see Compiling Java Code to x86 Code ).

+1
source

Perhaps you want to embed some other JavaVMs, then you can take a look at Kaffe , but I don’t know this and it may not meet your needs. My understanding of the JVM specification is that the class loader is an integral part (and it needs some basic classes).

What is the JVM-based DSL language that you want to use?

0
source

Source: https://habr.com/ru/post/890577/


All Articles