santo27
asked on
How to remove the Dos window from an java application
Hi,
i want to remove the Dos window , while running the Java Application. i know it is possible by staring the aplication by javaw. but again this application could be started in a batch file only, as it has a lot of parameters. so if we use javaw in an batch file, the process starts without giving output in the dos window, but the dos window remains there because of the batch process started. i wanted to avoid this. i hope u folks understood what i mean. if not mail be back. a faster solution to this is appreciated.
Thanks,
Santosh
i want to remove the Dos window , while running the Java Application. i know it is possible by staring the aplication by javaw. but again this application could be started in a batch file only, as it has a lot of parameters. so if we use javaw in an batch file, the process starts without giving output in the dos window, but the dos window remains there because of the batch process started. i wanted to avoid this. i hope u folks understood what i mean. if not mail be back. a faster solution to this is appreciated.
Thanks,
Santosh
Put 'exit' in the last line of your batch file.
use
start java <your complicated parameters>
exit
the start command starts the java program asynchronously (that means it returns to the batch file immediately) and exit closes it.
start java <your complicated parameters>
exit
the start command starts the java program asynchronously (that means it returns to the batch file immediately) and exit closes it.
Package your application as an executable jar.
It should then be able to be started (on Windows) by double-clicking on it.
If it isn't, then you'll just need to associate .jar files with javaw, the same way you would do for any other file type under windows.
Of if you've got a bat file already then just double-click on it.
It should then be able to be started (on Windows) by double-clicking on it.
If it isn't, then you'll just need to associate .jar files with javaw, the same way you would do for any other file type under windows.
Of if you've got a bat file already then just double-click on it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
santo27:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.