没有JVM的Java [英] Java without JVM
问题描述
只是想知道是否有任何Java实现在没有JVM的情况下工作。我感兴趣的原因很简单,因为我很好奇,我想知道是否有任何轻量级Java实现(没有附加所有Sun库)。
Just wondering if there are any Java implementations that work without a JVM. The reason I'm interested is, well, simply because I'm curious, and I was wondering if there were any "lightweight" Java implementations (without all the Sun libs attached).
我也有兴趣在C ++中嵌入Java,但是在C ++中嵌入JVM对我来说似乎很荒谬。我只是想利用我的C ++应用程序中的一些Java语言功能,但不会利用所有无聊的Java API。
I'm also interested in embedding Java in C++, but embedding the JVM in C++ seems rather ridiculous to me. I just want to exploit some of the Java language features in my C++ apps, but not exploit all the frivolous Java APIs.
编辑:
我从很多答案中看到我需要澄清...
I see from a lot of the answers I've gotten that I need to clarify...
我最近进入了开发节点。 js应用程序,它使用JavaScript。 istelf中的JavaScript是一种语言规范,它不会自动带有DOM,window.open等,虽然它确实存在了一段时间。我想知道是否有类似谷歌的v8,除了JavaScript,但Java。最后,我不在乎我是否不能用它编写Hello World应用程序,我只是希望能够将Java嵌入到C ++应用程序中,就像我可以使用v8或SpiderMonkey将JavaScript嵌入到C ++应用程序中一样。如果我能做到这一点,那么我可以在C / C ++中实现控制台输出,然后使该实现可以从Java调用。
I recently got in to developing node.js applications, which uses JavaScript. JavaScript in istelf is a language spec, it doesn't automatically come with the DOM, window.open, etc., although it did for a while. I'm wondering if there's something similar to Google's v8, except not for JavaScript, but for Java. In the end, I don't care if I can't write Hello World apps with it, I just want to be able to embed Java in a C++ application the way I can embed JavaScript in a C++ application with v8 or SpiderMonkey. If I could do that, then I could implement console output in C/C++ and then make that implementation callable from Java.
推荐答案
有轻量级Java处理器设计用于小型设备,例如 JOP
there are light weight java processors designed for use in small devices for example JOP
这篇关于没有JVM的Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!