Title: How do I create a desktop shortcut icon to launch my program?
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).
Authored by: Veryant Support on Mon, Aug 31st, 2009 at 7:00 PM
This question has been viewed 11308 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=35

Powered by PHPKB Knowledge Base Software