[SOLVED] launch a java program with Java 8 on Mageia 8?

After I upgraded from Mageia7 to Mageia 8, the old java based invoicing program I use fail print preview and printing.
(Reported bug here, with terminal output.)
I see in terminal output, it use Java version 11.0.10-ea
I have both java-1.8.0-openjdk (java 8) and java-11-openjdk installed.
How do I force it to use java 8 ?
My current launch command:
Uninstalling java 11 is not an option as much depend on that version.
(Reported bug here, with terminal output.)
I see in terminal output, it use Java version 11.0.10-ea
I have both java-1.8.0-openjdk (java 8) and java-11-openjdk installed.
How do I force it to use java 8 ?
My current launch command:
- Code: Select all
cd "/home/morgan/Tribun/Eko/FriBok" ; _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" java -jar *.jar
Uninstalling java 11 is not an option as much depend on that version.