I have read another discussion here but it was not answered by Oracle and it is now archived, so...
The ProgramData\Oracle\Java\Javapath\javaw.exe symlink does not work when used in a desktop icon.
The Windows OS pops up a dialog "Open With" window.
If I do the following in a command line window that has been run as administrator.
cd \ProgramData\Oracle\Java\javapath
mklink jw.exe "C:\Program Files (x86)\Java\jre1.8.0_80\bin\javaw.exe"
Change one of my desktop icons to use the jw.exe it still pops up the Open with dialog.
If I do the following
cd \ProgramData\Oracle\Java
mklink /D jbin "C:\Program Files (x86)\Java\jre1.8.0_80\bin"
Change one of my desktop icon to use the C:\programData\Oracle\java\jbin\javaw.exe it works.
What is the fix for this, the java install process creates the symlinks based on the java version you are installing.
This needs to be fixed because my customers are getting mad cause every time they upgrade Java my icons stop working.
And they are tried of manually editing the icons to make them work and I am also not happy with this problem.
The cmd.exe solution is an ugly one cause the cmd window either stay visible or flashes briefly on the screen or shows up in the task bar.