0

Please mind im fairly new to linux so please try to keep the technobabble to a minimum.

So in the ubuntu software centre i tried to install the java 6 runtime and it gave me this error message

The following packages have unmet dependencies:
openjdk-6-jre: Depends: openjdk-6-jre-headless (>= 6b34-1.13.6-1ubuntu0.14.04.1) but 6b34-1.13.6-1ubuntu0.14.04.1 is to be installed
               Depends: libjpeg8 (>= 8c) but 8c-2ubuntu8 is to be installed
               Depends: libpulse0 (>= 1:0.99.1) but 1:4.0-0ubuntu11 is to be installed
               Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed

Another window popped up and said that

The Ubuntu Software Centre is has experienced an internal error
A.B.
  • 92,125
kylevv
  • 1
  • 1
  • 1

2 Answers2

1

You can try running this command from your terminal: $ sudo apt-get install openjdk-6-jre. See more info here: http://openjdk.java.net/install/

Andrei T
  • 131
  • 2
0

You shouldn't install JDK for all system (java for all system on Russian), install it for specified user - it's more flexible:

  1. Download any JDK (*.tar.gz or *.sh)
  2. Install it to any folder (basically *.sh script will only unpack archive, so new JDK can be manually unpacked to any folder), so java will be located here - /home/evgeniy_fitsner/develop/soft/jdk/64/6/bin/java
  3. Open ~/.profile and add JAVA_HOME to you path like below:
    export JAVA_HOME="/home/evgeniy_fitsner/develop/soft/jdk/64/6" export PATH="$JAVA_HOME:$JAVA_HOME/bin:$PATH"
  4. Restart system (I'm not like source ~/.profile)

Now you could check Java version, type in console: java -version