Could someone, please help me or give me some advice???
Thanks a lot!!!
[ July 25, 2008: Message edited by: Jessid Leon Velez Gutierrez ]
If you look at the Izpack website, you will see that all the Windows specific features (creating shortcuts, registry entries, ect) are optional features, which means they most likely supply an exe or dll that they access using JNI.
the user should be able to access my jar through the start menu.
The contents of the Start|Programs menu on Windows XP comes from several folders.
One of them on my system is:
C:\Documents and Settings\Owner\Start Menu\Programs\
Other versions have different locations that may be pointed to by an Environment variable.
To allow a user to start your program from the Start|Programs menu, I guess you'd have to add a folder in the above path and create a shortcut in that folder.
Or if exists a command to run from de command line, that would be another help, because i could create a batch file and execute it using java
Thanks a lot!
Originally posted by Norm Radder:
Don't have a clue. It would depend on the OS.
Windows might have a utility to do it, or perhaps thru a JNI program or as someone suggested, look at an existing shortcut and create one on your own.
I've tried investigating the .lnk format once before but it's quite hard. I have written some JNI code though that can do it, but it's a bit complex. You have to work with C interfaces - and that's not as easy as Java interfaces.
The trick is to use IShellLink and IPersistFile; this link has a small example which I used to get my code running.