Remove warning messages from the command window

P

Priyanka AGARWAL

Hi,
I have a java application . A .bat file is used to launch the
application which sets the environment variables and launches java. I
am also using jclass in my application. I get several warning messages
which are from jclass and also some exception messages from the
applciation . I want to do away with these messages i.e., I want a
clear command window which appears when I launch the application.
Is there a way? Please help?

Thanks
Priyanka
 
T

Thomas Schodt

Priyanka said:
I have a java application . A .bat file is used to launch the
application which sets the environment variables and launches java. I
am also using jclass in my application. I get several warning messages
which are from jclass and also some exception messages from the
applciation . I want to do away with these messages i.e., I want a
clear command window which appears when I launch the application.
Is there a way? Please help?

You can suppress the window completely by launching
javaw
instead of
java

If you just want stderr redirected to the bit bucket;
java MyClass 2>nul
or, if you wanted to keep any error messages for review
java MyClass 2>./err.log
 
A

Andrew Thompson

I get several warning messages
which are from jclass and also some exception messages from the
applciation . I want to do away with these messages i.e., I want a
clear command window which appears when I launch the application.
Is there a way?

Stop using jclass and fix your app. (then jar it with a
manifest specifying the main class - double click launch,
no command line).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top