Solved

open AWT app - finish/close DOS window

Posted on 1998-05-10
4
235 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 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 …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

717 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