I've found the problem.
Minecraft version 1.12.2 and under ONLY work with java 8.
You must have java 8 installed and set as your java_home.
Since im developping on JDK14, it crashed the game as soon as i pressed play.
A solution that the developer could do is to let us specify the java...