I have a java application that is launched from a batch file as follows:
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.5.0_16
SET JAVA_EXE="%JAVA_HOME%\bin\java.exe"
%JAVA_EXE% -Xmx128m -jar ASHV.jar
I can create a shortcut to the batch file, but the shortcut can't be pinned to the Windows 7 taskbar. I found that by specifying the shortcut path as follows I could pin the shortcut:
C:\Windows\System32\cmd.exe /C C:\oracle\ashv-3.4-bin\run.bat
The problem is that now the shortcut and the java application both get their own icons on the taskbar. What I would like is for there to be one button on the taskbar that both lauches the application and is used to switch to the application (as it is for most applications).