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).
by: Veryant Support
This question has been viewed 10497 times so far.
Here to View all the questions in isCOBOL General
There are no attachment file(s) related to this question.
There are no user comments for this question. Be the first to post a comment. Click Here