I am using AdoptOpenJDK(version jdk-8.0.212.03) and getting the following error:-
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Font.
Note: I have jdk installed in my machine
I have tried with -Djava.awt.headless=true
AND issue disappeared.
But i still didn't able to find the root cause of the issue?
Can anyone help me to find what may be possible cause of the above?