I made a java program with a GUI using eclipse so whenever I want to run it I run it there, but my friend wants to run it on his computer so I made a class-file using javac in command prompt and also made a batch-file to run the program. The problem is that every time ha runs it this command window is still in the background. So what I want is to make that box disappear, is it any way to do that?
Appreciate all answers :)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With