Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Exe or remove window from .bat

Thread view: 
418928@cepsz.unizar.es - 12 May 2006 18:43 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.