EDIT: a screenshot for you:
click here to view screenshot (The text in the image is very small. sorry)
Hello ilai kahana, I didn't see your message until just now. Sorry for being a month late. You have probably figured it out by now or given up. But if you are still interested, here is what I did.
Open the Minecraft Java Edition launcher.
Click the "Installations" button at the top of the screen.
Click the three dots on the right of one of your installations.
Click "edit" in the drop down menu that shows up.
Click the "more options" button in the "edit installation" menu.
In the box labelled "JAVA EXECUTABLE," copy and paste the location that Anders Rosen put in (if you're on Linux.) The location is
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Finally, boot up the game.
If this does not work, it means that you either don't have openjdk8 installed, or it's in a different location. I simply installed openjdk8 using
sudo apt-get install openjdk-8-jre
in the terminal.
If you got a different error, I suggest you make a new issue. Sorry that you're having trouble. Good luck getting it fixed!