简体   繁体   English

如何为Mac OS X获得JDK 8-32位以进行Openhab开发?

[英]How to get JDK 8 - 32 bit for Mac OS X for Openhab development?

根据openhab教程,他们说openhab开发人员应在Mac OSX上使用JDK 8-32位,如何安装JDK 8-32位,唯一可用的JDK 8版本是64位!

All the recent Macs run 64-bit macOS . 所有最新的Mac都运行64位 macOS

If you still want to install JDK32 bit, you can have any OS using a virtual machine (VMware Fusion, Parallels, or VirtualBox) and then install JDK inside that VM. 如果仍要安装JDK32,则可以使用虚拟机(VMware Fusion,Parallels或VirtualBox)安装任何操作系统,然后在该VM中安装JDK。

For the openHAB recommended is to use Zulu . 对于openHAB,建议使用Zulu

More accurate answer provided by: Basil Bourque 提供的更准确答案:Basil Bourque

I believe you have misread the documentation. 我相信您误读了文档。 This page notes that you must use 32-bit Java on ARM chips, rather than 64-bit. 该页面指出,必须在ARM芯片上使用32位Java,而不是64位。

Please use the 32-bit version of the JVM for ARM platforms, even on 64-bit operating systems. 即使在64位操作系统上,也请针对ARM平台使用32位版本的JVM。 Serial connections won't work with a 64-bit JVM, preventing bindings like Z-Wave from functioning. 串行连接不适用于64位JVM,这会阻止Z-Wave之类的绑定起作用。

ARM chips are used in many of the home automation devices and used in computers such as the Raspberry Pi. ARM芯片用于许多家庭自动化设备中,并用于Raspberry Pi等计算机中。 But ARM chips are not used in Macs, which currently use 64-bit Intel Core chips. 但是ARM芯片在Mac中使用,Mac目前使用64位Intel Core芯片。

According to this Question , Java apps are agnostic regarding their host OS being 32-bit or 64-bit. 根据此问题 ,Java应用程序与它们的主机操作系统是32位还是64位无关。 Only native-code libraries called from Java may care about 32/64 bits of the host OS. 仅从Java调用的本机代码库可能关心主机OS的32/64位。

I'm not a user of OpenHAB, so I'm not certain 我不是OpenHAB的用户,所以我不确定

I give up… Stack Overflow is losing my edits. 我放弃…堆栈溢出正在丢失我的编辑。

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

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