Solved

How to remove the Dos window from an java application

Posted on 2001-07-03
5
218 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 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