user2528085 user2528085 - 1 month ago 6
Java Question

Install Java 8 in debian Jessie

I've tried to install Java 8 into a ARM embedded linux in several ways but none of them worked:

First:
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

(from the repositories of webupd8)


W: Failed to fetch
http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/InRelease
Unable to find expected entry 'main/binary-armel/Packages' in Release
file (Wrong sources.list entry or malformed file)

W: Failed to fetch
http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/jessie/main/binary-armel/Packages
404 Not Found

E: Some index files failed to download. They have been ignored, or old
ones used instead.


It seems that this repo does not have the source for my architecture:


Architectures: amd64 arm64 armhf i386 powerpc ppc64el


And i need armel ( at least this is working for java 7 )

I also tried this way:
http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

Downloading the jdk from Oracle and then following the instructions.

But i cannot execute the file :


root@arietta:~# java -version
-bash: /usr/bin/java: No such file or directory


and neither:


root@arietta:~# /opt/jdk1.8.0_71/bin/java -version
-bash: /usr/bin/java: No such file or directory


While the file exists and has the correct permissions... i'm going crazy..

Any idea or alternative method?

Answer

At the end i solved it adding jessie backports to the sources.list:

echo deb http://http.debian.net/debian jessie-backports main >> /etc/apt/sources.list

apt-get update && apt-get install openjdk-8-jdk

update-alternatives --config java

Comments