Home > java > Install JDK7 on OpenSuse

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
Advertisements
Categories: java
  1. October 15, 2011 at 23:09

    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?

    • October 16, 2011 at 00:47

      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.

  2. April 23, 2012 at 15:12

    easy variant
    edit pycharm.sh change JDK=”/usr/java/jdk1.7.0″

  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: