2

I'm working on some of my projects using Java 11, but some libraries are not available in this version. So I want to move to Java 8. However, I'm not able to remove Java 11 version and install Java 8. In my usr/lib/jvm directory both versions of Java are shown (see screenshot).

usr/lib/jvm contents

How can I change the Java version from 11 to 8?

1 Answer 1

2

Have you checked this answer ? How to set default Java version?

It looks like it can answer your problem. You can have multiple Java versions running on your system and change between them with:

sudo update-alternatives --config java

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .