Java 8 somehow don't recognized by Thunar anymore.
I didn't used Java programs recently, but I can run them from Thunar for sime time ago.
But it doesn't work anymore.
First I just simply clicked on the JAR file to run it. Nothing happened.
I thought maybe I forget to set it executable, but there is no option to set it to executabe. Some times ago it was possible to set JAR files to be executable within Thunar. Not anymore.
It turned out the JAR file is already executable, so the problem is not that.
So I right clicked on the file and I saw only Engrampa shown in the "Open with.." field.
So I choose the "Open With Other Application", but Java 8 isn't there!
After this, I installed the latest OpenJDK (version 11) and that java version come up in Thunar in the "Open With..." filed, and the option to set the JAR file executabe is there too.
I tried it with version 10 JDK and that works too. Only the Java version 8 that is not working from Thunar.
By the way, from terminal I can run those JAR files, so technically Java 8 is working. Only Thunar can't recognize it.
My problem is that the JAVA program doesn't work with never versions of JAVA. It only works with Java 8.
The programs that try to run are: Technic Launcer, MultiMC to play modded Minecraft.
I like to know how I can add Java 8 to Thunar, so I can run Java programs from Thunar again with mouse-click, so I don't need to use command line (or create bash scripts)?