Solved

open AWT app - finish/close DOS window

Posted on 1998-05-10
4
223 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
  • 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 50 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
How to determine if a string is a valid SHA value 7 43
Java: The Public Class Main 4 45
ejb entity bean example issue 2 27
Running JavaFX on the Raspberry Pi 27 136
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…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

733 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