Incorrect application tied to taskbar (Windows 7)

I have an application that runs through a shortcut. This application than launches the Java GUI application using CreateProcess ().

When a Java application is bound to the taskbar, javaw.exe is bound to the taskbar instead of the "expected" shortcut. Only native executables running Java can be modified — the shortcut should remain.

What needs to be done to link a shortcut?

Thanks Stefan

+3
source share
3 answers

Use something like winrun4j or create .bat instead of using a shortcut.

+1
source

Java-, Windows 7 Java. J7Goodies Strix. , , Windows 7. ..

0

IconCache :

explorer.exe

Windows Task Management -> Processes -> End "explorer.exe"

Windows Task Management -> File -> New -> CMD.EXE

:

CD /d %userprofile%\AppData\Local DEL IconCache.db /a EXIT

explorer.exe

Windows Task Management -> File -> New -> explorer.exe

0

Source: https://habr.com/ru/post/1714774/


All Articles