javaw -Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel com.iscobol.gui.client.Client -Discobol.conf=client.properties MYAPP
I would like to know how I can capture the errors and output sent to stderr and stdout. I understand that the isclient.exe captures these streams in isclient_out.log and isclient_err.log in the C:\Program Files\Veryant\isCOBOL2010\bin folder.
How can I create my own "wrapper" executables to do the same thing?
Answer:
Veryant uses and recommends install4j from ej-technologies http://www.ej-technologies.com to create Windows installers and "wrapper" executables for Windows.
For example, isclient.exe is what install4j calls a "launcher". Launchers include the following features and more:
name="isclient"
redirectStderr="true"
stderrFile="isclient_err.log"
stderrMode="append"
redirectStdout="true"
stdoutFile="isclient_out.log"
stdoutMode="append"
mainClass="com.iscobol.gui.client.Client"
vmParameters=" quot;-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel quot;"
install4j comes with a graphical designer program so you don’t actually need to type in the above properties.
If you want to create an executable but don't need an installer technology then consider using exe4j from the same company.
Contact Veryant Support if you would like more information.
Article ID: 126
Created: May 4, 2010
Last Updated: May 4, 2010
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=126