开发者

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

What's the recommended way to embed JVM in C program with NO library. This means JVM as a eD开发者_JAVA百科SL execution engine. (Not whole Java platform environment) I'm trying to use another JVM based language instead of Java itself.


This may sound insane, but I would suggest embedding Mono and using IKVM to run your Java code. Mono is a relatively small and portable VM, which is suitable for embedding (you may even link it statically to your application) and IKVM is a faithful implementation of Java 1.6, which is capable of running even such monstrosities as Eclipse.

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


Maybe you want to embed some other JavaVM-s, then you might look into Kaffe, but I don't know it well and it might not answer your needs. My understanding of JVM specification is that the class loader is an essential part of it (and it needs some core classes).

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜