java Exceptions color


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users java Exceptions color
# 1  
Old 07-27-2011
java Exceptions color

Hi,
I call a java program from a cron job and i need to display the exceptions or Errors thrown by java(basically stacktrace) in the unix/linux console in the red color.Is it possible to do that? If so, pls. give me some pointers how to do that.
eg:
HTML Code:
Exception in thread "main" java.lang.IllegalArgumentException: Catch if you Can!
        at HelloWorldApp.main(HelloWorldApp.java:4)
I should be able to display at least the line with Exception in red color.
I need this only for the console display as and when the Exception occurs when the java program spits out exceptions/Errors.

Thanks in Advance.

Last edited by ramse8pc; 07-27-2011 at 12:59 PM.. Reason: added info
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

2. Programming

how to handle SQL exceptions to call script having args via java ?

Hi, i want to call shell script via java + in that shell script i m doing some sql operation by connecting to sqlplus . i want to return 0 if successful exeution of SQL operations else 1 ; is it possible ? #!/bin/sh Name=$1; export ORACLE_HOME $ORACLE_HOME/bin/sqlplus... (3 Replies)
Discussion started by: crackthehit007
3 Replies

3. Solaris

Java Exceptions while installing Oracle

Hello. I was trying to installe oracle 10g on solaris t0 x86 and got few exception? Could you please suggest, what might be going wrong? $ ls -l total 32 drwxr-xr-x 9 oracle dba 512 Nov 21 03:50 doc drwxr-xr-x 5 oracle dba 512 Nov 21 03:50 install drwxr-xr-x 2... (5 Replies)
Discussion started by: panchpan
5 Replies
Login or Register to Ask a Question
FREEMIND(1)						      General Commands Manual						       FREEMIND(1)

NAME
freemind -- A Java program for creating and viewing mindmaps. SYNOPSIS
freemind [no_options] DESCRIPTION
This manual page documents briefly the freemind command. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu- mentation as a mindmap (see Help menu in FreeMind). freemind is a program that allows to create and view so-called mindmaps, as well as export them to HTML or different image formats. It also has a plugin concept to extend its functionality. OPTIONS
This program does not have any option. Just start it! ENVIRONMENT VARIABLES
DEBUG If this environment variable is set, freemind gives more information on how it finds its different elements, as well as some other information. JAVACMD Default value for the java virtual machine (the java command). JAVA_BINDIR If $JAVACMD is not set, the java virtual machine is searched under $JAVA_BINDIR/java. JAVA_HOME If $JAVACMD and $JAVA_BINDIR are not set, the java virtual machine is searched under $JAVA_HOME/bin/java. PATH If all $JAVA... environment variables fail, the java virtual machine command (java) is searched in the $PATH (with which). CLASSPATH ADD_JARS The $CLASSPATH variable also lets one specify additional jars, which is good, if you want to add a new Look&Feel jar (the motif one is so ugly...). Alternatively, the content of $ADD_JARS will be prepended to $CLASSPATH. FREEMIND_BASE_DIR Directory where FreeMind searches for its plugins and libraries FILES
/etc/freemind/freemindrc ~/.freemind/freemindrc freemind tries to read its environment variables from /etc/freemind/freemindrc and ~/.freemind/freemindrc, so that specific set- tings are possible at machine and user level. /usr/bin/java If all searches through environment variables fail, the java virtual machine is expected to be /usr/bin/java; if not, freemind exits with an error. SEE ALSO
The online documentation under http://freemind.sf.net/, especially the Linux related one under the Wiki page link http://freemind.source- forge.net/wiki/index.php/FreeMind_on_Linux. AUTHOR
This manual page was written by Eric Lavarde deb@zorglub.s.bawue.de for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub- lished by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. FREEMIND(1)