Solved

How to remove the Dos window from an java application

Posted on 2001-07-03
5
219 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:santo27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Expert Comment

by:yongsing
ID: 6251297
Put 'exit' in the last line of your batch file.
0
 
LVL 3

Expert Comment

by:dnoelpp
ID: 6251362
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.
0
 
LVL 92

Expert Comment

by:objects
ID: 6251391
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.

0
 
LVL 35

Accepted Solution

by:
TimYates earned 75 total points
ID: 6252267
use javaw instead of java...
0
 

Expert Comment

by:CleanupPing
ID: 9061986
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question