CDC and Personal Profile - How to set icon for .lnk on PPC

I'm using the Mysaifu JVM and I would like to know how toset an icon of my choice for the shortcut file to my application (.lnk). Currently, the Mysaifu character shows up as the icon.

On a previous post, I found out how to run my java application using the following text in my .lnk file:

255#"\Program Files\Mysaifu JVM\jre\bin\jvm.exe" -Xhidevmwindow -Xmx5M -jar "\My Documents\DeliveryOrganizer.jar" DeliveryOrganizer

Please help!!!

Your help would be much appreciated!

Thanks!

[528 byte] By [EvoBevoa] at [2007-11-26 23:17:23]
# 1

I don't think you're going to have much luck modifying the original link, since the jvm.exe is what the link is pointing to. Windows Mobile is getting its icon from the jvm.exe, and not the DeliveryOrganizer jar file.

However, you might look into creating a separate .lnk file, that then calls your original .lnk file that executes the jvm.exe. See if Windows Mobile allows you to modify the new .lnk file's properties...

joe.coma at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Thanks a lot for your reply!!

Do you think making a .exe file with the jar file would be a good solution? or should I go with your previous suggestion?

I just want to be able to deploy my application on the PPC with a new icon.

What would be the best way to do this?

Thanks again!

EvoBevoa at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Drat! No dice with creating another link file to call another. I should have tried this before posting my suggestion. My mistake.

I created a .lnk file to call the original .lnk file, and the icon was identical to the original .lnk file (no change). Plus, the new .lnk file wouldn't properly launch the original .lnk file.

Sorry, but looks like you're back where you started. My suggestion was a no-go...

joe.coma at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

After doing some Googling, I found this informative result:

http://oldsap.blogspot.com/2006/07/customising-icons-on-your-ppc-shortcut.html

Appears that you'll have to do some work to change that icon, using some freeware/shareware to manipulate the properties of the link.

Let us all know what you find out, and if you're successful...

joe.coma at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
Wow. Thanks so much!You really made my day. =)I followed the steps in the link you found and was able to change the icon.Now my task is reduced to finding a way to make my own icon and assigning it in the .lnk file.Thanks again. =) =)
EvoBevoa at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
This is what worked for me:<ignored>#<target app>?<full path of icon or DLL file containing icon>,<index of icon>or<ignored>#<target app>?<full path of icon or DLL file containing icon>,-<resource ID of icon>
EvoBevoa at 2007-7-10 14:18:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...