JavaSE-1.8 install

Hello!

I habe the following java installed on my beagbebone black:
java version “1.8.0_161”
Java™ SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot™ Client VM (build 25.161-b12, mixed mode)

I programming small applications on my windows PC and there eclipse show me:
JavaSE-1.8

But when start my applications, some .jars are missing … I always need to search them int the web and add it to my application.

How can I install a full java on the beaglebone black?

Thank you!

I see JRE and JDK are way beyond 1.x.x and on 11. See here: Java - Debian Wiki

Seth

1 Like

Java 1.8.x coresponds to openjdk-8, this shipped with Debian 9.x Stretch, which is really eol at this point: Debian -- Debian “stretch” Release Information

Feel free to install: sudo apt install openjdk-8-jdk to get the full OpenJDK Development Kit…

Regards,

Hello Robert!

Thank you … but is openjdk-8-jdk not the near the same as installed?
When I run the command, I get

openjdk version "1.8.0_332"
OpenJDK Runtime Environment (build 1.8.0_332-8u332-ga-1~deb9u1-b09)
OpenJDK Client VM (build 25.332-b09, mixed mode)

Or did you maybe mean a higher version like 17 or 18?

Debian traditionally ships only one version of Java per Debian release cycle…

Java “1.8” aka “8” aka openjdk-8 aka : 8u332-ga-1~deb9u1… shipped with Debian 9.x Stretch…

Java SE 11, openjdk-11, shipped with Debian 10.x : Debian -- Details of source package openjdk-11 in buster

Java SE 17 (LTS) , openjdk-17 shipps with Debian 11.x : Debian -- Details of source package openjdk-17 in bullseye

Regards,

Thank you … so I can only use openjdk8, right?

Unfortunately I miss always some java classes. As example:
Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/HostnameVerifier

This seems not installed on the beaglebone black.

Sorry, not sure, either bug the java maintainer at debian.org

Or maybe transition to Java 11 in Buster…

Regards,

ok, thank you