Installing JDK 1.7 on CentOS

5,129

Solution 1

You should download the jdk-7u3-linux-i586.tar.gz or jdk-7u3-linux-x64.tar.gz and simply uncompress one of those archives.
It is enough to install a JDK (Java SE Development Kit 7 Downloads)

And it is quite different from installing a Java Platform, Enterprise Edition 6 SDK Update 3 (with JDK 7), from the Java EE 6 SDK Downloads (which, indeed, might require a GUI).

Solution 2

If I look at the download page, there is an rpm for x86 and x64

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html

Share:
5,129

Related videos on Youtube

alex347
Author by

alex347

Updated on September 18, 2022

Comments

  • alex347
    alex347 almost 2 years

    I'm trying to install JDK 1.7 on CentOS on my server. I've downloaded java_ee_sdk-6u3-jdk7-linux-x64.sh from Oracle website. Looks like it requires graphic interface, which I don't have on remote server. I haven't found any RPMs on Oracle website. yum install java installed jdk 1.6, but I need 1.7

    • Khaled
      Khaled over 12 years
      Does not it show a CLI-based menu?
    • alex347
      alex347 over 12 years
      it shows this: ./java_ee_sdk-6u3-jdk7-linux-x64.sh This program requires DISPLAY environment variable to be set. Please re-run after assigning an appropriate value to DISPLAY.
  • kinkajou
    kinkajou almost 10 years
    after I uninstalled jdk why does yum asks for openjdk? I removed openjdk.
  • VonC
    VonC almost 10 years
    @kinkajou I don't know. I know jdk and openjdk are two different product, only the second one can be installed without having to accept a license first.
  • kinkajou
    kinkajou almost 10 years
    I have installed oracle jdk already but yum stills asks for openjdk.
  • VonC
    VonC almost 10 years
    yum should ask because of another product which depends on it, I suppose.