support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > isCOBOL General > Deployment > How do I create a desktop shortcut icon to launch my program?
Question 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 $ISCOBOLlibiscobol.jar and the directories and/or jar files where your COBOL programs and resources are located.

You can manually change CLASSPATH in the Environment Variables screen of your system's settings. 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? (veryant.com)")

For 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 This question has been viewed 14834 times so far.
Click Here to View all the questions in Deployment category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How can I package my application and execute it in a JAR file?
  2. What are the minimum files I need for a runtime-only installation? How do I create a launcher?
  3. How do I generate an executable for deployment?
  4. How do I create an installation package for my COBOL application?
  5. Can I mix versions of Java, isCOBOL compiler and isCOBOL runtime?
Article Information Additional Information
Article Number: 35
Created: 2009-08-31 4:37 PM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.