NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dsnpevl
Sep 14, 2017Virtuoso
How to install Java 8 JDK on RN312?
I want to install Java 8 JDK on RN312 (Intel based). I tried:
# apt-get update # apt-get install default-jdk
It installs Java 7 instead:
# java -version
java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.151-b01, mixed mode)
What is the correct way to install Java 8 on RN312 or other Intel based models?
I also tried this, but these packages cannot be found:
root@nas-XX-XX-XX:~# apt-get install openjdk-9-jdk Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openjdk-9-jdk root@nas-XX-XX-XX:~# apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done Package openjdk-8-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'openjdk-8-jdk' has no installation candidate root@nas-XX-XX-XX:~# apt-get install openjdk-9-jre Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openjdk-9-jre root@nas-XX-XX-XX:~# apt-get install openjdk-8-jre Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openjdk-8-jre
Seems OpenJDK 8 is available from jessie backports archive. This works for me:
root@nas-XX-XX-XX:~# echo "deb http://http.debian.net/debian jessie-backports main" | tee --append /etc/apt/sources.list.d/jessie-backports.list > /dev/null root@nas-XX-XX-XX:~# apt-get update root@nas-XX-XX-XX:~# apt-get install -t jessie-backports openjdk-8-jdk root@nas-XX-XX-XX:~# java -version openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-1~bpo8+1-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
See also: https://linux-tips.com/t/how-to-install-java-8-on-debian-jessie/349/2
2 Replies
Replies have been turned off for this discussion
- dsnpevlVirtuoso
Seems OpenJDK 8 is available from jessie backports archive. This works for me:
root@nas-XX-XX-XX:~# echo "deb http://http.debian.net/debian jessie-backports main" | tee --append /etc/apt/sources.list.d/jessie-backports.list > /dev/null root@nas-XX-XX-XX:~# apt-get update root@nas-XX-XX-XX:~# apt-get install -t jessie-backports openjdk-8-jdk root@nas-XX-XX-XX:~# java -version openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-1~bpo8+1-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
See also: https://linux-tips.com/t/how-to-install-java-8-on-debian-jessie/349/2
- DinDinDaddyInitiate
Just an FYI for all you ARM-based owners, these instructions worked for me as well. Thanks!
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!