?
Solved

open AWT app - finish/close DOS window

Posted on 1998-05-10
4
Medium Priority
?
240 Views
Last Modified: 2006-11-17
When calling an AWT app from a .bat file, how do you close the resulting DOS window (the cursor is on a new line, but there is no prompt)?
0
Comment
Question by:ptpovo
[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
  • 2
4 Comments
 
LVL 4

Expert Comment

by:rafistern
ID: 1220894
Wouldn't the best thing to be to configure the dos window to close on completion.
0
 

Author Comment

by:ptpovo
ID: 1220895
Absolutely, problem is I can't figure out how that is done.  My first thought is to include the following:

@echo off
java MyAWTApplication
exit

but the DOS window remains open during the life of the AWT app window and after the AWT app window has been closed.  The DOS cursor just hangs with no prompt.
0
 

Accepted Solution

by:
prg022698 earned 200 total points
ID: 1220896
In my case the window closes automatically, don know why yours doesn't (are you sure your app has ended?) on the other hand you can use javaw instead of java to open the app without any DOS window.
0
 

Author Comment

by:ptpovo
ID: 1220897
Tried javaw, works just fine! Thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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