Forum posts for javaw.exe

Why is javaw.exe Randomly Disappearing?

I am having a ghost problem. I have included Java in my install package so that I don't have to rely on the user already having Java. The problem is that every now and then the javaw.exe disappears in my package! Upon double-clicking my Desktop-shortcut I get a message saying that it can't find javaw.exe and it asks me if I want to remove the shortcut. I have not been able to confirm it but I think it only happens when the PC is restarted. But not every restart. That is what makes it a ghost problem. I can't track down what is causing it or when exactly it happens.

This has occurred multiple times on Vista as well as once (so far) on XP Pro. When it happened on the XP Pro, my shortcut also was changed. javaw.exe was replaced with java-rmi.exe. That may have been the result of Windows' search for a solution... Because I have not found any patterns to when the .exe gets deleted I have not been able to test if this issue exists on XP Home or Win 7.

The shortcuts are to:

'C:Program FilesMy Applicationjre6injavaw.exe' -jar 'C:Program FilesMy Applicationmain.jar'


There are 3 processes which use the Java in my package. They are all for the same jar, the difference is, I add --argument to the end so as to run a different part of main.jar.


One of the processes (added after my problem started appearing on the Vista) starts when the user logs in, it handles the System Tray icon. It uses Java, Swing and JavaFX.
One starts at Start-up and runs in the background as administrator. This only uses Java.
The other is the GUI interface that runs when the user clicks one of the shortcuts. This one is Java and JavaFX with a rare Swing JDialog.


I am using Java 6 and JavaFX 2 build 36 or 40 (not sure how to be sure which one I have). I don't have any virus scanner on the XP Pro. The Vista does have Windows Defender but nothing else. On the Vista I manually ran the scanner and javaw.exe was not effected. There are no items in my Quarantined area and no indication that javaw.exe was removed by Windows Defender.

Edit: I tried renaming javaw.exe to myjavaw.exe but it happened again on the Vista. There were no items in Windows Defenders Quarantined area. I think a virus scanner can be ruled out. Again this time, it happened after a reboot. Maybe my background process is not ending properly? Could that cause Windows to remove the exe?

Is this my problem or does it have to do with Java or JavaFX and how do I prevent it?

View complete forum thread with replies

Other posts related to javaw.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Difference between java.exe and javaw.exe
Both javaw.exe *32 and javaw.exe runs in process manager
Why is javaw.exe Randomly Disappearing?
javaw.exe crashes on creating JFrame
javaw.exe cannot find path [duplicate]
Many instances of javaw.exe
Application working with javaw.exe but not with java.exe
Eclipse error: “javaw.exe not found”
javaw.exe not displaying error on failure
Eclipse cannot find javaw.exe
How to rename Javaw.exe [closed]
javaw.exe pdb not found
Javaw.exe problem with Eclipse 5.0
javaw.exe/eclipse.exe cannot be killed [closed]
javaw.exe and eclipse startup problems
javaw.exe incorrect redraw to gui

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.