简体   繁体   English

哪个 JVM 用于 Raspberry Pi

[英]Which JVM for Raspberry Pi

I'm a little bit confused about the various ways to run Java programs on the Raspberry Pi.我对在 Raspberry Pi 上运行 Java 程序的各种方式有些困惑。 As I see it there are the following possibilities:在我看来,有以下几种可能:

Java 6:爪哇 6:

  • Java SE 6 Embedded Java SE 6 嵌入式

Java 7:爪哇7:

  • OpenJDK 7 OpenJDK 7
  • Java SE 7 Embedded Java SE 7 嵌入式
  • JDK 7.40 (and greater) JDK 7.40(及更高版本)

Java 8:爪哇 8:

  • JDK 8 JDK 8

This brings us to the following questions:这给我们带来了以下问题:

  1. Is there a difference between the JVM shipped with JDK and Java SE? JDK 和 Java SE 附带的 JVM 之间有区别吗?
  2. Is there no ARM version of OpenJDK 6 or 8?有没有 OpenJDK 6 或 8 的 ARM 版本?
  3. What are the benefits of Java SE 7 Embedded over the regular Java SE 7 VM (included in JDK 7)? Java SE 7 Embedded 与常规 Java SE 7 VM(包含在 JDK 7 中)相比有哪些优势? I could only find the following points:我只能找到以下几点:
    • Low memory footprint低内存占用
    • No AWT/Swing无 AWT/Swing
  4. Java SE 7.40 for Raspberry Pi The Oracle homepage only lists downloads for an ARM v6/v7 Soft Float ABI and an v7 Hard Float ABI version. Java SE 7.40 for Raspberry Pi Oracle 主页仅列出了 ARM v6/v7 Soft Float ABI 和 v7 Hard Float ABI 版本的下载。 As the Raspberry Pi uses the v6 architecture I guess you have to use the Soft Float version.由于 Raspberry Pi 使用 v6 架构,我猜您必须使用 Soft Float 版本。 So there should be no speed improvements over the Java SE 7 Embedded VM which also uses the Soft Float ABI, right?因此,与同样使用 Soft Float ABI 的 Java SE 7 Embedded VM 相比,速度应该没有提升,对吧?
  5. Is there no embedded version of Java SE 8?有没有嵌入式 Java SE 8 版本?
  6. Does JDK 8 always use the Hard Float ABI or is there also a Soft Float ABI version? JDK 8 总是使用 Hard Float ABI 还是还有 Soft Float ABI 版本?

To sum up:总结一下:

  • If you want to use the Hard Float ABI use the developer preview of JDK 8如果要使用 Hard Float ABI,请使用 JDK 8 的开发人员预览版
  • If you want a stable Java version with a low memory footprint use Java SE 7 Embedded如果你想要一个内存占用低的稳定 Java 版本,请使用 Java SE 7 Embedded
  • If you want a stable Java version and want to use Swing/Awt use JDK 7.40 (and greater)如果您想要一个稳定的 Java 版本并想要使用 Swing/Awt,请使用 JDK 7.40(及更高版本)

自 9 月以来,所有 Raspbian 映像都将(默认)随 Oracle Java 一起提供,该 Java 应该针对 Raspberry 进行优化

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

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