Using JDK 8 on a Python project


I saw several issues related to OpenJDK 11 being installed by default, like:

I wanted to share a hacky workaround that I’ve done on my project.

The approach is basically to manually put jdk_switcher into the repository (as it doesn’t get installed without language: java), then filter the JDK11 directory out of the PATH variable.

If someone has a better solution to this problem, I’d love to know one.


(dummy post to mark the topic resolved as it doesn’t require a reply)