Solved

open AWT app - finish/close DOS window

Posted on 1998-05-10
4
188 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
Comment Utility
Wouldn't the best thing to be to configure the dos window to close on completion.
0
 

Author Comment

by:ptpovo
Comment Utility
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
Comment Utility
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
Comment Utility
Tried javaw, works just fine! Thanks!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
for i loop in grovy 1 32
Python Assistance 7 31
maven example error 3 34
mockito example issue 8 29
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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now