Install JDK7 on OpenSuse

This is for a 64bit system:
Download Oracle’s JDK7 RPM package for 64bit Linux. The filename should be “jdk-7-linux-x64.rpm”.

Then as root:

zypper install jdk-7-linux-x64.rpm
cd /usr/java/jdk1.7.0/bin
for bin in *; do update-alternatives --install /usr/bin/$bin $bin $(pwd)/$bin 20000; done

3 thoughts on “Install JDK7 on OpenSuse

  1. Hi,

    A did exactly what is write above, however a could not install Pycharm, I got this error:

    No JDK found to run PyCharm. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.

    Please could your help?

    1. Try adding this line to your ~/.bashrc file:
      export JAVA_HOME=/usr/java/jdk1.7.0

      Log out and log in again and try this in a terminal:
      echo $JAVA_HOME

      It should show: “/usr/java/jdk1.7.0”

      Then run PyCharm.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s