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

Veryant Knowledge Base
Home > All Categories > isCOBOL Server and Thin Client > How do I capture client side errors when using a different look and feel (e.g. Nimbus)?
Question Title How do I capture client side errors when using a different look and feel (e.g. Nimbus)?
Question:

I use the Nimbus look and feel introduced in the Java SE 6 update 10 release. For example:

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:

  • Customized JRE/JDK detection
  • Flexible classpath construction
  • Custom working directory
  • Windows version info resource
  • Splash screen
  • Redirection of stderr and stdout
  • Custom icon
  • VM parameters file

Veryant's launcher configuration for isclient.exe has the following settings (in the install4j project file):

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.

Authored by: Veryant Support This question has been viewed 6223 times so far.
Click Here to View all the questions in isCOBOL Server and Thin Client 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. In thin client mode how do I run a local external application like the Windows Calculator or Microsoft Excel?
  2. How do I set up isCOBOL Server (Application Server) and Thin Client?
  3. How do I debug a program running in thin client mode?
  4. How do I use Java Web Start to automatically download and launch the thin client?
  5. With thin client is there a way to update and push changes to programs live (on the fly), without having to kill and restart the isCOBOL Server?
  6. How do I avoid having to edit the Java security policy to allow isCOBOL thin client applet to connect?
  7. How do I use secure transport (SSL) with the isCOBOL thin client?
  8. How do I download files from server to client using isCOBOL Thin Client?
  9. The COBOL program suddenly terminates on the server and leaves thin client running with a blank screen
  10. How can I get the system-information data from the client computer?
  11. What are the Java version requirements on the client and server? Do they need to match?
  12. Is there a way to simulate users and load-test the thin client?
  13. How do I resolve the error 'Application Blocked by Java Security' working with jnlp?
  14. The user name shown by the -panel is the PC Name. Is it possible have the user id of our application?
  15. How can I get the local username?
  16. Is there a way to distribute multiple client connections on different servers?
Article Information Additional Information
Article Number: 126
Created: 2010-05-04 4:54 PM
Rating: 1 Star
 
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.