How do I create a desktop shortcut icon to launch my program?
Question ID : 35
Created on 2009-08-31 at 4:37 PM
Author : Veryant Support [firstname.lastname@example.org]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=35
The key is to make sure that CLASSPATH is set correctly to include iscobol.jar and the directories and/or jar files where your COBOL programs and resources are located.
You can manually change CLASSPATH using Control Panel/System/Advanced System Settings/Environment Variables. Then you can make a desktop shortcut to "isrun PROGNAME", "javaw PROGNAME", etc.
You can also create an executable jar file. (See "How can I package my application and execute it in a Jar file?" below)
For actually end-user deployment you can use an installer technology such as install4j or InstallShield to set the CLASSPATH variable correctly.
A less elegant method for use during development is to create a .bat or .cmd file with SET CLASSPATH= before the isrun command line. And then make a desktop shortcut to the batch file you created. This method has the side-effect of displaying a command prompt window in the background when you run the program. You can set the shortcut to run with the window minimized (i.e. only the command prompt window starts as minimized).
Back to Original Question