posted 23 years ago
On windows, I simply make a .bat file which runs the command line to run my java app, i.e.
java -classpath "..." -D<somekey/value> MyProgram
I have my installer include this file during installation.
It gets trickier if the JRE, classpath, and/or program can have a variable location. You need to use some combination of calls to the system, DOS commands (or cygwin commands if possible), and possible even MFC to figure out what to do. I would not try to do a shorcut in Java.
--Mark
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/