简体   繁体   English

在Natty 64位上安装32位JDK

[英]Install 32-bit JDK on Natty 64-bit, I

I want to install Oracle's JDK (32 bit version) under Ubuntu Natty (64 bit version). 我想在Ubuntu Natty(64位版本)下安装Oracle的JDK(32位版本)。 While there is a package for JRE (32 bit version), I want JDK (32 bit version). 虽然有一个用于JRE(32位版本)的软件包,但我想要JDK(32位版本)。

I want to avoid the installer provided with the .bin file, and rather use a .deb file. 我想避免使用.bin文件提供的安装程序,而应该使用.deb文件。 However, it seems the package java-helper has disappeared in Natty. 但是,看来java-helper软件包在Natty中已经消失了。 What can I do? 我能做什么?

The Java compiler produces byte code which is same whether you use the 32-bit or 64-bit JDK and plan to use the 32-bit or 64-bit JRE. Java编译器生成的字节码与使用32位或64位JDK并计划使用32位或64位JRE的字节码相同。

The bit-ness of the JDK and JRE don't have to be the same and its unlikely you will notice the difference. JDK和JRE的位元不必相同,并且您不太可能会注意到它们之间的差异。 (The maximum memory is possibly the main one) (最大内存可能是主要的内存)

The JDK installation can be treated as 'zip' installation, which means that the installer simply unzips the content of jdk to the target directory on your machine. JDK安装可以视为“ zip”安装,这意味着安装程序只需将jdk的内容解压缩到计算机上的目标目录即可。 You can try to copy-paste the required jdk directory to your machine and probably set JAVA_HOME variable if needed. 您可以尝试将所需的jdk目录复制粘贴到计算机上,并根据需要设置JAVA_HOME变量。 The above should do the magic. 上面应该做魔术。

Happy coding! 编码愉快!

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

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