zoukankan      html  css  js  c++  java
  • 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下载地址:
  • 相关阅读:
    论文连接
    MySQL中的datetime与timestamp比较
    查看挂载情况
    insertable = false, updatable = false的使用
    umount: /home: device is busy
    LVM
    erase-credentials配置
    <T> List<T>前面<T>的意思
    Java 内部类 this
    AuthenticationManager, ProviderManager 和 AuthenticationProvider
  • 原文地址:https://www.cnblogs.com/potu/p/2949324.html
Copyright © 2011-2022 走看看