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?

Lalit Verma
  • 21
  • 1
  • 2

1 Answers1

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

fmath
  • 31
  • 4