简体   繁体   English

Java如何在很小的设备上运行?

[英]How does Java run on really small devices?

My understanding is that all java is run on a JVM, which requires the JVM at minimum to be present and running. 我的理解是,所有Java都在JVM上运行,这要求JVM至少存在并运行。

http://www.java.com/en/download/help/sysreq.xml http://www.java.com/en/download/help/sysreq.xml

States the minimum requires of 64MB RAM and 58MB Hard disk space. 说明最低要求为64MB RAM和58MB硬盘空间。 And some OS. 和一些操作系统。 (Which itself cant take up space and have there own ram requirements) (这本身不能占用空间并有自己的内存要求)

But how would a small device handle to run the JVM, say on a fridge or router? 但是,例如在冰箱或路由器上,小型设备如何处理运行JVM? Or is there a compact JVM maybe that runs on these instead? 还是有一个紧凑的JVM可以代替它们运行? Or an older version? 还是旧版本? Or is it simply these devices have the on-board requirements, they just look small? 还是仅仅是这些设备具有板载要求,它们看起来很小?

Oracle also provides embedded versions of the Java SE. Oracle还提供Java SE的嵌入式版本。 Although I've never done any embedded projects, this is what they probably use on the small devices that you just metioned if they plan to use Java. 尽管我从未做过任何嵌入式项目,但是如果它们计划使用Java,它们可能会在您刚才提到的小型设备上使用。

http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html

Although if the devices you just mentioned have less than 32MB of RAM they would be using Java ME which only requires 8MB of RAM. 尽管如果刚才提到的设备的RAM少于32MB,则它们将使用Java ME,而Java ME仅需要8MB的RAM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM