`

Installing the JRE on Ubuntu Systems

    博客分类:
  • java
 
阅读更多


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.

  1. 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>.

  2. Make the file executable:

    sudo chmod 755 /opt/java/32/jre-6u31-linux-i586.bin
    
  3. Go to the new folder:

    cd /opt/java
    
  4. Execute the file:

    sudo ./jre-6u31-linux-i586.bin
    
  5. Accept the license terms to continue installing the JRE.

  6. 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.

  1. Set the new JRE as the default:

    sudo update-alternatives --set java /opt/java/32/jre1.6.0_31/bin/java
    
  2. 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)
分享到:
评论

相关推荐

    Installing STLinux on Ubuntu

    ### 安装STLinux在Ubuntu上的关键步骤与挑战 #### 概览 本文将深入探讨在Ubuntu上安装STLinux的全过程,重点解析由于包管理系统的差异而带来的挑战及其解决方案。对于那些希望在Ubuntu环境中利用STLinux强大功能的...

    installing samba on ubuntu

    面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...

    anaconda安装 - Installing Anaconda on Ubuntu

    ### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...

    Ubuntu The Complete Reference

    - **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

    OpenERP Installing Ubuntu9.04

    Installing Your Driver on Windows Millennium

    Installing Your Driver on Windows Millennium INF File Guide

    Ubuntu 使用手册 14.04 最新版本(英文原版)

    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...

    Beginning.Ubuntu.LTS.Server.Administration.From.Novice.to.Professional.2nd.Edition

    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. ...

    Ubuntu Server Guide < 英文版>

    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.

    Ubuntu.15.04.Server.with.systemd.Administration.and.Reference.epub

    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 ...

    Installing Activ Test on Your PC

    ### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...

    winxpddk.part5.rar

    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....

    winxpddk.part2.rar

    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....

    winxpddk.part3.rar

    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....

    winxpddk.part1.rar

    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....

    winxpddk.part4.rar

    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....

    Sams.Ubuntu.Unleashed.2010.Edition.Dec.2009.pdf

    - 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 ...

    Beginning Ubuntu Linux Part1

    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...

Global site tag (gtag.js) - Google Analytics