• java and eclipse for linux install


    Hi all,

    I installed Oracle Linux Server 6.3 selecting "software Development System" (java 1.6.0 comes with it).
    but I need to use Java 1.7
    So I downloaded jdk-7u10-linux-x64.rpm 

    when I try to install it, I get the following error.

    Unpacking JAR files...
    rt.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/rt.pack
    jsse.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/jsse.pack
    charsets.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/charsets.pack
    localedata.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/ext/localedata.pack

    I can't uninstall java 1.6 because other rpm uses it.

    Can someone tell me what the "proper" way to install Oracle Linux and Java 1.7 should be?
    OR is there a Oracle Linux Server 6.4 coming out soon with Java 1.7 as its default package set ;-)

    thanks in advance,
    c.w.

     
    ------------------------------------------------------------------------------------------------------------------------------------------------------
     
    re :
    You can ignore the errors. The files named in the error lines do not exist in the rpm package, but are there as .jar files

    The following works under Oracle Linux 6.3 x86_64 (and probably other versions).

    1. Open the following URL in a web browser on your PC:

    http://www.oracle.com/technetwork/java/javase/downloads/index.html 

    2. Click the JDK download button, accept the license agreement and download the JDE rpm package.

    3. Copy the following file to your Oracle Linux server (SFTP):

    jdk-7u10-linux-x64.rpm 

    4. Login as root and use the YUM utility to install the RPM package. 

    # yum install ./jdk-7u10-linux-x64.rpm 

    5. Register the new installed java version, then change your default Java:

    # alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_10/bin/java 2 # alternatives --config java 

    Display your default Java version:

    # java -version java version "1.7.0_10" Java(TM) SE Runtime Environment (build 1.7.0_10-b18) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    java for linux 下载地址:
    eclipse for linux c下载地址:
  • 相关阅读:
    对MFC文档、视图、框架的理解
    MFC中快速将CVIew转换成CScrollView
    MFC中的一个错误
    单文档中视图与文档的相互
    python函数
    python模块介绍和引入
    python面向对象和面向过程
    python数据类型2
    python数据类型
    python无法使用input功能
  • 原文地址:https://www.cnblogs.com/potu/p/2949324.html
Copyright © 2020-2023  润新知