Java jar crashes when it tries to load a window, no error message

Whenever I run a Java application that has a user interface, it crashes as soon as the window opens. The window is blank white with no content and shown for about 100 milliseconds. There are no error messages when I run it with java -jar <myjar>. The program just appears to simply terminate with no warning or anything. It is a very strange behavior.

I am running Java 1.8 x64 bit. I have tried jarfix but to no avail. This is very frustrating since I have no error messages to share and I can not run anything with a window system.

My JAVA_HOME is not set. The path to the bin/ file in my JDK is in my path.

I have tried reinstalling Java, using different versions, none have worked so far.

Answer

Attribution
Source : Link , Question Author : quintin , Answer Author : Community

Leave a Comment