Hi everybody,
I need to execute a java application and avoid the appearance of any
window (like the classical one that you get when executing a .bat
file). Is it possible to specify that a .bat file should not show any
window (errors could be written elsewhere). If not, which application
can I use to generate a .exe for my java application and avoid the
window?
Thanks in advance,
S.
oulan bator - 12 May 2006 19:01 GMT
hi,
use javaw instead of java to launch your app (but without a .bat file
..)
or you can use the very good launch4j that does exactly the same but in
a exe file (including the fast splash, and the icon)
regards
jcsnippets.atspace.com - 12 May 2006 21:43 GMT
> hi,
>
[quoted text clipped - 3 lines]
> or you can use the very good launch4j that does exactly the same but in
> a exe file (including the fast splash, and the icon)
An alternative to launch4j would be JavaLauncher, which performs the same
tasks.
Best regards,
JayCee
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks
418928@cepsz.unizar.es - 12 May 2006 21:51 GMT
Thanks a lot, that's very useful!
S.
Rhino - 12 May 2006 21:51 GMT
> Hi everybody,
>
[quoted text clipped - 4 lines]
> can I use to generate a .exe for my java application and avoid the
> window?
Sounds like a job for Runtime.exec() to me!
This article explains this technique in detail:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html
--
Rhino