Note
The Oracle Java Runtime Environment (SRE) has been removed from the official software repositories of Ubuntu and only provides a binary (.bin) version. You can get the JRE from the Java SE Downloads.
-
Download the appropriate version of the JRE, such as jre-6u31-linux-i586.bin, for your system and unpack it directly under /opt/java/<32 or 64>.
-
Make the file executable:
sudo chmod 755 /opt/java/32/jre-6u31-linux-i586.bin
-
Go to the new folder:
-
Execute the file:
sudo ./jre-6u31-linux-i586.bin
-
Accept the license terms to continue installing the JRE.
-
Tell the system that there’s a new Java version available:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/32/jre1.6.0_31/bin/java" 1
Note
If updating from a previous version that was removed manually, execute the above command twice, because you’ll get an error message the first time.
-
Set the new JRE as the default:
sudo update-alternatives --set java /opt/java/32/jre1.6.0_31/bin/java
-
Make sure your system is now using the correct JRE:
$ sudo java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b04, mixed mode)
分享到:
相关推荐
### 安装STLinux在Ubuntu上的关键步骤与挑战 #### 概览 本文将深入探讨在Ubuntu上安装STLinux的全过程,重点解析由于包管理系统的差异而带来的挑战及其解决方案。对于那些希望在Ubuntu环境中利用STLinux强大功能的...
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...
### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...
- **Understanding the X Window System**: Explanation of the X Window System and its role in displaying graphics on Ubuntu. - **Configuring the Display Manager**: Configuration of the display manager ...
OpenERP Installing Ubuntu9.04
Installing Your Driver on Windows Millennium INF File Guide
Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity...
system administrators, and programmers and demonstrates the power and flexibility that the Hardy–Heron Ubuntu Server Long Term Support Edition offers for small networks and corporate systems alike. ...
The Ubuntu Server Guide contains information on how to install and configure various server applications on your Ubuntu system to fit your ...installing Ubuntu, refer to the Ubuntu Installation Guide.
Installing the Ubuntu Server Chapter 3. Usage Basics: Login, Interfaces, and Help Chapter 4. Managing Software Part 2: Services Chapter 5. Managing Services with systemd Chapter 6. Mail Servers ...
### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...
If you decide after installing the DDK that your driver should run on an additional operating system, use the Add/Remove Programs utility in the Control Panel to add the section for that system....
If you decide after installing the DDK that your driver should run on an additional operating system, use the Add/Remove Programs utility in the Control Panel to add the section for that system....
If you decide after installing the DDK that your driver should run on an additional operating system, use the Add/Remove Programs utility in the Control Panel to add the section for that system....
If you decide after installing the DDK that your driver should run on an additional operating system, use the Add/Remove Programs utility in the Control Panel to add the section for that system....
If you decide after installing the DDK that your driver should run on an additional operating system, use the Add/Remove Programs utility in the Control Panel to add the section for that system....
- Detailed instructions on how to install Ubuntu, including dual-boot setups with other operating systems like Windows. - Configuration of the system to optimize performance and customize the user ...
Part 2 covers installing Ubuntu on your computer. An illustrated guide is provided, and all installation choices are explained in depth. Additionally, you’ll find a problem-solving chapter to help in...