Solved Help installing java 7...Redhat / centos :l

Discussion in 'Bukkit Help' started by kittenchunks, Oct 15, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    kittenchunks

    Not sure where to post this but, i am using centos redhat, and i cant install the latest java version :l it always installs java 6 with yum install java :l Any help? This is causing my bukkit plugins to not work.
     
  2. Offline

    Lolmewn

    You have to manually download it from the Oracle website, put it on your server, unpack, install. Just google 'How to install Java 7 CentOS'.
     
  3. Offline

    kittenchunks

    Can you please tell me how :l
     
  4. Offline

    Lolmewn

    [quote uid=90717034 name="kittenchunks" post=1374571]Can you please tell me how :l[/quote]
    <Edit by Moderator: Redacted bit url>
     
    Last edited by a moderator: Feb 18, 2017
    kittenchunks likes this.
  5. Offline

    MikeA

    kittenchunks likes this.
  6. Offline

    kittenchunks

    All it says is






    [root@vm ~]# wget "http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.rpm"
    --2012-10-15 08:03:35-- http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.rpm
    Resolving download.oracle.com... 63.141.192.243, 63.141.192.219
    Connecting to download.oracle.com|63.141.192.243|:80... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://edelivery.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.rpm [following]
    --2012-10-15 08:03:35-- https://edelivery.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.rpm
    Resolving edelivery.oracle.com... 23.15.138.174
    Connecting to edelivery.oracle.com|23.15.138.174|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
    --2012-10-15 08:03:36-- http://download.oracle.com/errors/download-fail-1505220.html
    Connecting to download.oracle.com|63.141.192.243|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5307 (5.2K) [text/html]
    Saving to: `download-fail-1505220.html.7'

    100%[======================================>] 5,307 --.-K/s in 0s

    2012-10-15 08:03:36 (195 MB/s) - `download-fail-1505220.html.7' saved [5307/5307]

    [root@vm ~]# su -c 'rpm -i jdk-7-linux-x64.rpm'
    error: open of jdk-7-linux-x64.rpm failed: No such file or directory
    [root@vm ~]#
     
  7. Offline

    Jade

    "Saving to: 'download-fail-1505220.html.7"
    Yeah. Oracle is a bioooch, you have to accept their terms when you download it now, so you have to upload it via FileZilla, WinSCP, or whatever you use, THEN extract and install it.
     
  8. Offline

    kittenchunks


    lol...can you explain how to do this...
     
  9. Offline

    Jade

    Sure can!
    Download this file. http://javadl.sun.com/webapps/download/AutoDL?BundleId=68235
    Open FileZilla (I'm going to assume that's what you use, if not, I don't know. :\)
    Connect to your server.
    Switch to your PuTTY terminal, type in mkdir /usr/java/
    Still in PuTTY, type in cd /usr/java/
    Now, go back to FileZilla and go to Remote Site: /usr/java
    Drag the file you just downloaded (jre-7u7-linux-x64.rpm) over to the remote site.
    Let the upload finish in FileZilla, Then switch back to PuTTY.
    Type this in the terminal. : rpm -i jre-7u7-linux-x64.rpm
    Give it a minute to finish it's magic.
    Type in java -version
    If it doesn't work, Either I told you something incorrect, or you did it wrong. If I told you something wrong and it doesn't work, I'll help you tomorrow.

    Double post, I know, I'm sorry.
    kittenchunks -- I'll give some pictures in a moment.
    FileZilla (open)

    [​IMG]

    I'm already connected to my server in the above picture.
    mkdir (open)

    [​IMG]

    cd (open)

    [​IMG]

    Filezilla cd (open)

    [​IMG]

    NOTE; YOU WILL NOT HAVE ANYTHING IN HERE. I ALREADY HAVE JAVA INSTALLED.
    Drag jre-7u7-linux-x64.rpm to Remote Site (Should still be /usr/java)
    Once the upload finishes, it shoul have the file in there.
    Go back to PuTTY
    rpm -i jre-7u7-linux-x64.rpm (open)

    [​IMG]


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
    kittenchunks likes this.
  10. Offline

    kittenchunks


    ok im doing this now. thanks =D


    Thanks so much i have been attempting to get this for 5 and a half ours, thanks sooo sooo much :DDDd

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  11. Offline

    Jade

    Did it work? :)

    Yep! Have fun!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 13, 2020
    kittenchunks likes this.
Thread Status:
Not open for further replies.

Share This Page