Tutorial: Creating MIDlet shortcuts in start menu, and changing the shortcut icon
Well, so you have installed Opera Mini, you love the app but hate having to open your MIDlet manager each time you want to run it. You can't have a direct shortcut icon in your start menu or your quicklaunch bar. Here is a tutorial to fix it (step 1 works with any MIDlet, step 2 works with any shortcut)
First i have to give due credit to Menneisyys
and his awesome Java MIDlet Bible
, and also to bobstar_fr
for his shortcut icon mod tutorial
- Get yourself a decent MIDlet manager, the default windows one is crap. I would advise Esmertec Java Manager which can be found here
- Download an Icon Editor for PC, for example the 30-day trial version of ArtIcons Pro
will do the job.
STEP 1 : Creating a MIDlet shortcut
This step assumes you have installed Esmertec Jeodek or Esmertek Jbed (see prerequisites)
First, locate the list position of the Java MIDlet you want to shortcut in the Jeodek/Jbed application list. If you install Jeodek/Jbed as a fresh install, and then directly install Opera Mini, just use the number "0" to refer to Opera Mini.
Warning, if you uninstalled some midlets, the application list may not start at 0 or may have gaps. This number is in fact incremented starting at 0 each time you install a new MIDlet.
Then, go to \Windows\Start menu\Programs, and create a new shortcut. In the "target" field, type this :
"\windows\jbed.exe" -run s0_
Replacing the number 0 after the "s" letter by the list position of your MIDlet as found above.
If you have Jeodek installed, you will want to replace jbed.exe with jeodek.exe
Then click on your shortcut, et voila, the MIDLet runs immediately without having to launch the manager.
All credit goes to Menneisyys
STEP 2 : Modifying the shortcut icon
So you have a nice working shortcut, but it has the default java icon instead of the MIDlet icon. If you make many shortcuts they will all share the same (ugly) icon. You may want to change this.
The bad point is that you can't directly access the icon in a .jar file. You may only use icons included in .exe or .dll files. You could extract the .png icon from the .jar file and compile it into a .dll, but this is not the goal of this tutorial.
So if you want to change the icon of your newly-created Opera Mini shortcut, you will use another icon, for example the one from Opera 8.
Find the .exe (or .dll) which contains the icon you want to use, copy it on your PC, then open it with your Icon Editor. You will see a list with all icons included in the file, along with a number. Write down this number, it's the ID of your icon and you will need it.
For example, when you open OperaWM.exe in your icon editor, you see several icons, and the one we're interested into (with the red "O") has ID number 131.
Then go back to your Start Menu shortcut, and in the target field add the following at the end of the line :
For the above example, this would be :
Et voila, you now have a nice icon for your shortcut.
All credit goes to bobstar_fr
To end this tutorial, here's a few ready-made examples :
Shortcut for Opera mini, installed in first position in your manager, with opera icon. In the target field of your shortcut, you would write :
"\windows\jbed.exe" -run s0_ ?\Windows\OperaWM.exe,-131
Shortcut for SFR Messenger, installed in second position in your manager, with MSN messenger icon. In the target field of your shortcut, you would write :
"\windows\jbed.exe" -run s1_ ?\Windows\WLMMessenger.exe,-50
Thats'it, hope you will enjoy.