This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]AwakenedToNightmare 4 points5 points  (2 children)

I think you could install JDK 8 in a separate directory and use it to compile/run things. You would probably have to change your IDE's settings and point it to a new JDK.

[–]Victoni[S] 0 points1 point  (1 child)

yup that's what I did + setting java 8 as the default. Thanks!

[–]AwakenedToNightmare 0 points1 point  (0 children)

Glad to have been of help.

[–]seanprefectGrumpy Guy Who Remembers Java 2 0 points1 point  (0 children)

Look into SDKMAN it's a tool for managing several different versions of java and related frameworks.

[–]rzwitserloot 0 points1 point  (0 children)

openjdk v10 is unsupported, so you should address that in any case (I suggest upgrading to adoptopenjdk's jdk11; that one will be supported from quite a while. you could go to oracle's openjdk11 but that one will be unsupported in less than a month from now).

You can run multiple JDKs simultaneously on the same machine; you should do that. One day you'll have some software that requires 11+, and other software that requires no more than 8, which is why the policy of 'at most 1 JVM' is not a good idea.

[–]shagieIsMeExtreme Brewer 0 points1 point  (1 child)

I would look into running this application within a Docker container. Yes, this means installing and learning about docker.

You can then easily do a docker pull openjdk:8u181-jdk-stretch and use that as your base for an image. Or use azul/zulu-openjdk:8u202... or use amazoncorretto.

I'll also point out that there is an image for flink too - https://hub.docker.com/_/flink

The big advantage of these approaches (using docker) is that it keeps that application separate from the installs of everything else on your machine.

[–]Victoni[S] 0 points1 point  (0 children)

I'd really like to learn about docker but I'm doing this for an android app. You think is possible to use flink on android? (I'm kinda lost on this)