Exe or remove window from .bat

4

418928

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.
 
O

oulan bator

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
 
J

jcsnippets.atspace.com

oulan bator said:
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)

An alternative to launch4j would be JavaLauncher, which performs the same
tasks.

Best regards,

JayCee
 
R

Rhino

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?
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top