如何在Ubuntu 32位上安装JDK?

时间:2018-04-04 21:08:42

标签: java ubuntu

我从Oracle读到这个tutorial,但它无论如何都不起作用。你们中的任何人都知道如何在Ubuntu 32位上安装JDK吗?

3 个答案:

答案 0 :(得分:0)

Oracle JDK download site

下载以“.tar.gz”结尾的Linux x86文件

然后,解压缩:

tar -zxvf file.tar.gz

你有它。要使用它,您需要在PATH环境变量中包含“bin”子文件夹。

答案 1 :(得分:0)

https://askubuntu.com/questions/819996/howto-install-latest-oracle-java-jdk-32-bit-to-linux-xubuntu-14-04-64-bit-ea

所有命令行。

"The easiest solution I have found so far is using a great tool called Oraji 
which automatically does the configuration for you. Here is the brief 
excerpt from the install instruction created by the Oraji developer:

Download latest official 32-Bit Oracle JDK. File name should be jdk-... - 
linux-i586.tar.gz from 
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads- 
2133151.html

Install Oraji on Ubuntu:

sudo add-apt-repository -y ppa:neurobin/ppa
sudo apt-get update
sudo apt-get install oraji
Java Installation Instruction:

Run in terminal:

sudo oraji '/path/to/the/jdk_or_jre_archive'
or run

sudo /path/to/oraji /path/to/the/jdk_or_jre_archive
after giving the oraji script execution permission if you didn't install the 
script.

That's it. Now if you want to populate JAVA_HOME and other environment 
variables run source /etc/profile or logout and login.

For more info like Uninstall, Changing JDK version, just follow this nice 
tutorial by Oraji developers https://github.com/neurobin/oraji

Have a great day, guys!"--Chiggiddi (Ubuntu Ask)

答案 2 :(得分:0)

我正在给你参考链接,只需遵循这个就行了。

https://www.youtube.com/watch?v=VrOhA-I3aFs

安装Java的命令是:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

确保您的JAVA_HOME变量已设置为:

export JAVA_HOME=/usr/lib/jvm/java-8-oracle