简体   繁体   中英

Jar not visible, but javaw.exe is running

On one of my Windows systems, I have a problem running a Jar file.

When I double click on my jar file, the first jFrame (splash screen) appears and hides again,but the main jFrame doesn't become visible ... When monitoring my services, I noticed that the javaw.exe keeps running ...

When launching the Jar from the command prompt (java -jar c:\\myJar.jar), everything works fine ...

I've tried creating an output file while running the jar, and the file is created, but remains empty (java -jar c:\\myJar.jar > d:\\output.txt)

Does anyone have any idea what could be the problem ?

Java application will close (javaw.exe will close) after all of its threads finishes their work. So you are probably just disposing thread which was used to produce JFrame , but some other threads are still running (and probably waiting for something).

I can not help you further without more inforamtion about your specific application (eg your code)

Attach to the Java process using VisualVM (which is in your JDK bin directory) and see what the threads are doing.

Have you tried running the app from the command line, but using javaw instead? javaw doesn't have access to a console, and it uses a different Win32 subsystem (WINDOWS vs. CONSOLE).

I found the problem.

The computer having the issue, was running Dexpot (Multiple desktop software)... It seems one of the desktops was corrupt, causing the problem.

Special thanks to aioobe, jdv and Zereges for all the help ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM