You can use the javaw.exe program to run your class instead of the java.exe program. They are both in the bin sub-directory of your JDK directory. Javaw runs your program without the command-prompt window... in windows, you would make a shortcut to "<JDK_directory>\bin\javaw.exe -classpath <your_classpath> yourApp", and then you can run your program by clicking on an icon.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
hai Nate , nice to see u ur answer is a possible solution but something inside JVM 'll be more better.. System.exit() is exiting the JVM.is there is any Console.exit() like methods which eleminates console window without exiting JVM?. or any tricks? wishing u a splendid eve basha