Running java files without ugly command prompt box in the background
Launch it with javaw
instead of java
. The Description for java
mentions:
The
javaw
command is identical tojava
, except that withjavaw
there is no associated console window. Usejavaw
when you don't want a command prompt window to appear. Thejavaw
launcher will, however, display a dialog box with error information if a launch fails for some reason.