> How to get rid of that black system window appearing after executing a java
> application with java.exe or javaw.exe?
It is no longer a problem if..
- The app. is jar'd and has a manifest specifying main()
(so it becomes 'double click launchable')
- The app. is launched using JWS (icon/menu launchable).
>Hi,
>How to get rid of that black system window appearing after executing a java
>application with java.exe or javaw.exe?
I think you are referring to the console, and it should not be
appearing if you use javaw.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
>
> Hi,
[quoted text clipped - 7 lines]
>
> regards,
Since you're talking about exe files I'll assume you're using Windows.
javaw.exe is designed to do exactly what you want, but of course you cannot
invoke it from the command line (ie in a "dos window") because then that
window will remain (although you can close it).
To have only the frame and no console window, you need to create a shortcut
in the folder that contains the main class. As target type "javaw -
classpath . <your class name>" (without quotation marks).
If javaw is in your path (which it is by default), you can then run your
application using the shortcut, and you won't have a console window.
kawa - 19 Oct 2005 20:31 GMT
> Since you're talking about exe files I'll assume you're using Windows.
>
[quoted text clipped - 10 lines]
> If javaw is in your path (which it is by default), you can then run your
> application using the shortcut, and you won't have a console window.
Thank you very much it works.
A guy in pl.comp.lang.java gave me also a good advice
in a batch file type:
start javaw Apllication
then make a shortcut to the .bat
again thank you all very much for you help.
Best Regards,
Roedy Green - 19 Oct 2005 23:34 GMT
>in a batch file type:
>start javaw Apllication
>
>then make a shortcut to the .bat
That adds unnecessary overhead. Your shortcut can contain javaw.exe
as the program and application as the parameter.
You don't need a bat file or command interpreter.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Roedy Green - 19 Oct 2005 23:33 GMT
On Wed, 19 Oct 2005 13:58:14 GMT, zero <zero@this.hi> wrote or quoted
>To have only the frame and no console window, you need to create a shortcut
>in the folder that contains the main class. As target type "javaw -
>classpath . <your class name>" (without quotation marks).
yet another way to do it is launch from start | run
Yet another is to put it on the menu.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.