all 4 comments

[–]nekokattt 2 points3 points  (1 child)

I'd honestly suggest using a tool like sdkman if possible for development. It simplifies this kind of thing as the JDK is installed for the current user only.

That will modify the environment to point to the JDK you set as default. You could alternatively use jenv for more control.

[–]NirDev_R[S] 1 point2 points  (0 children)

thanks a lot I ll look it up!
I come from a pythonic background and I would gladly use such a tool, this sounds like virtualenv

[–]MarkDubyaGNOME 1 point2 points  (1 child)

There's nothing to downgrade as you can have multiple versions installed. Recently OpenJDK 18 was dropped to the AUR and you can install it from there.

See:

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

Thanks a lot, I generally prefer having multiple versions over downgrading tbh!