I'm road testing the Harting MICA Complete IIoT Starter Kit.

 

This is an ultra-short blog, explaining how to get a OpenJDK JRE version 1.8 on the Debian Stretch container.

It took me a while to get the right instructions.

The difficulty is that you have to get the package from Jessie's backport.

But that location isn't available in the main Jessie download area anymore, you have to get it from archive.debian.org.

And because the files are invalidated by debian.org, you have to tell apt-get to not check the "valid-until" date.

 

First, update the installer source list:

 

nano /etc/apt/sources.list

 

add this line, then save and exit

deb http://archive.debian.org/debian jessie-backports main

 

then tell linux you've added a source:

apt-get update

 

and install the headless java runtime

apt-get install -o Acquire::Check-Valid-Until=false -f  openjdk-8-jre-headless

 

Check a few things:

java -version

 

output:

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1~deb9u1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)

 

 

update-java-alternatives --list

 

output:

java-1.8.0-openjdk-armhf       1081       /usr/lib/jvm/java-1.8.0-openjdk-armhf

 

Related Blog
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 1: User Experience
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 2: MICA Debian Stretch Setup
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 3: Eclipse Configuration on Windows
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 4: Build and Debug the GPIO Example
HARTING MICA: Make a Safe(r) MQTT Container with Certificate and TLS/SSL
HARTING MICA: Manage Access to USB and other Devices
HARTING MICA: SD Card as Shared Storage
HARTING MICA: Alpine Linux and another MQTT Container with Certificate and TLS/SSL
HARTING MICA: Connect to Amazon Web Services
HARTING MICA: Install Java 8 VM in a Debian Stretch Container
HARTING MICA: Read BOSCH CISS Sensor with Java - part 1: USB Connect and Listen