Closing DOS window

I have a bat that looks like this everything works
start javaw -jar Runner.jar
but is there anyway to make the dos window close...
i thought javaw was supposed to run without the dos window...
or is my dos window a result of -jar
thanks for anyhelp
Scott

I did some testin on my win2000 machine, and running a batfile with the line
start C:\jdk1.3.1_01\bin\javaw.exe -jar jarfile.jar
gives just a quick flash of a dos window before it closes again, and my java application starts. The same works for jsdk1.4.1_01. The only way I have found to not have the dos window close automatically is to remove the "start" part of the command, in which case the window stays open as long as the application runs and then terminates. So I don't really know what causes your problem.
When you start a bat file Windows open a dos window. When to close that again is basically up to Windows, not the programs running in it. So I think it's question of telling Windows to behave, and not the javaw command as such. I seem to remember that the properties dialog for shortcuts to dos commands in winXP have a checkbox for something like "leave dos window open", but I'm not sure.
What does your dos window look like? - Does it "hang" on the javaw command, or do you get a new prompt you can write to?

Similar Messages

  • How can Java trap closing DOS window

    Hi all:
    This pertains to Windows.
    I have an application which needs to be shut down in a controlled fashion. Unfortunately I can't get my users to cooperate.
    I have learned how to trap for Ctrl-C and do a controlled shut down.
    I can't prevent them from closing the window the program runs in or the other ways to shut a program down from Windows.
    Is there any way to trap for the user closing the appliation (either by clicking the X in the top right or by choosing Close-AltF4 from the pull down). I would like to trap for the event and do a controlled shut down of the application before Windows pulls the gound out from under it.
    Thank!
    BillB

    Check this out:
    http://java.sun.com/developer/TechTips/2000/tt0711.html

  • Closing the DOS window...

    If i am asking the user to enter data into a dos window, what is the line of code i need to close the window if something like exit was typed in by the user?
    Thanks

    System.exit(0);

  • FRM-10142 The Http Listener (Dos Window Does not Stay Open)

    Dear Sir
    URGENT
    When I start OC4J instance its dos window open for few seconds and after that its closed.
    I mean OC4J instance dos window des not staying open at task bar.In oracle 10g forms builder and 11g database
    Please guide me how this problem would be solve...?
    Yassen

    For URGENT questions go right to https://support.oracle.com and file a Prio 1 SR with Oracle Support. For everything else I don't see why your question is more urgent then others.
    Did you check if maybe the port OC4J runs on (8889) is already used by another program (netstat)? Did you check the logfiles?
    cheers

  • Hacking into the form values file to retrieve a post after closing a window

    Okay, I'd just finished editing and re-editing a very long post and was doublechecking some of the links when I inadvertedly closed the entire window instead of merely closing the tabbed page I'd brought the new link up on to test it.
    I poked around and found a long binary file called "Form Values" in library/safari directory and I would just bet this has my full post in it. I copied it to the desktop because I had a feeling that if I opened another form with Safari, the info would be rewritten and lost forever. So I do have a safety copy now.
    Anyone have any idea at all how I could retrieve that information, and convert it from binary back into text form so I would not have to spend another two hours remembering and rewriting the post?
    Or a way of getting Safari to recognize it and read it into a new post form?
    Boy, recovering data with a menu item like "undo close window" or a reopen sure would be a nice feature... I bet I'm not the only person that's done this.
    THANKS!!

    I just downloaded Hex Editor and gave myself a trip down memory lane (hadn't used one of these editors since my DOS days). Anyway, as I expected, it looks like the Form Values file is encrypted - there are no recognizable text strings to extract. In any case, this file contains the data you used to fill out forms at particular sites, it does not carry the entire page or form.
    You could try Retrospective to see if you can find the page with the form in Safari's cache. If you do find it, the form could be filled out as when you closed the window or it could be blank as when it was last loaded into Safari - I don't know which because I haven't searched the cache with this puspose in mind before.

  • Exec opens a DOS window !!!!

    Hi,
    I'm launching in a loop an external program with the following command:
    Process p=Runtime.getRuntime().exec( S9XMLDMP + "S9xmldmp.exe -d" + '"'+RepertoireXML+'"' + " " + '"'+ChemFic+'"' );
    p.waitFor();
    that command is launched almost 3000 times consecutively and for each time, a DOS window opens and close immediately
    I want to display a jprogressbar, but for that I don't want the DOS windows to open, I want the job to be made as it was before, but without the opening /closing of the windows ? Is it possible with the runtime command ? please, how can I do ?
    thank you very much
    L.

    I don't know if this will help, but in one case I was
    using exec and noticed that if I used javaw.exe to launch
    my app (no dos window) then my subprocesses would each open a dos window, but if I used java.exe to launch
    my app they wouldn't.
    Keith Ambrose

  • Supressing Dos window on executing system command

    Hey,
    is there any way to supress the dos window when I call a system dependent .exe or bat file?
    AND
    is there any way to run a .exe file as a background process so that no window of it pops up?
    I use the Runtime.exe() to execute the system command but I'm annoyed by the dos windows it opens up.
    Any help highly appreciated.

    This is an AGE OLD Issue which Sun keep burying. By burying I mean it has been the top of their bugs/requests list many times. They just decide its closed without making any such fixes. The community is not pleased with Suns actions in this respect, blowing off their highest rated request.
    Answer:
    If you start your program with java.exe, then you wont get that window when you do runtime commands. If you start with javaw.exe, you will. They are blaiming it on M$ but most feel its just a silly Sun position and lame attempt to put somethign on M$ that is not really on M$. Sun can do it but they feel their solution is unstable. Most people have ended up making .exes to replace java.exe to get rid of that hideous console window. JBuilder has an interesting (but not my type) solution.
    If you search the top 10 bugs/ requests this one has likely resurfaced as Sun keeps erasing it, but the people keep voting it back to the top...

  • All SDK files crash when started  (errors generated and closed by windows)

    Every time I try to start a java program in SDK 1.4 through windows or through dos, it gives me an error approximate to:
    Javac.exe has created erros and will be closed by windows.
    An error log has been created.
    This happens EVERY time, and I was wondering if there was a way to fix it ><
    I'm running windows 2000

    If the error log says anything meaningful, do what it indicates. Otherwise, deinstall and reinstall Java. If that doesn't fix the problem download a new copy (verify the file size, see the Installation Instructions) and install that.

  • Why does captivate hang when it is closed in window 8.1 professional ? How is it solved?

    Why does captivate hang when it is closed in window 8.1 professional ? How is it solved?

    Hi,
    Do you see the issue every time you close captivate or is it only in some scenarios? Does it show any error messages? What captivate version are you using (64 bit or 32 bit)? Can you provide some more information or screenshots which can help us reproduce the issue.
    Tamish

  • Closed Captioning Window slow to open

    We have a team member using CP7 on a Win7 machine having a delay when he opens the closed captioning window.  It can take up to 10 seconds for the window to open. 
    We just put him on someone elses machine and it didn't do that even when logged in with his credentials.  He says it has done that through all the versions of Captivate that he's used on the XP and Win7 platforms and on previous computers.
    Does anyone have an idea of what might be causing this?
    Thank you,
    Susan

    Here's the fix to which I was referring, supplied by a colleague on Linked-In:
    "There are 2 instances of a codec that need to be turned into a .bak file.
    First you go into C/program files/Adobe Media Encoder CS5/MediaIO/codecs to find a file "SurCodeWrapper.vca" Change it to "SurCodeWrapper.vca.bak" do the same thing in C/program files/AdobePremiereProCS5/MediaIO/codecs with the "SurCodeWrapper.vca file there too. This WILL fix the lag. I think you lose surround sound encoding by doing this, but this hasn't been a problem for me."

  • When closing Firefox windows, I would like a warning before the last window closes. The about:config settings do nothing. There is a warning for multiple tabs..

    When closing Firefox windows, I would like a warning before the last window closes. The about:config settings do nothing. There is a warning for multiple tabs... why not for the last window? I do not use tabs... just windows... I have a mouse button programmed for that. It is really irritating to have to restart Firefox all the time and then open the history window because no warning was issued!

    This is ridiculous. I've had this problems for years now and I'm finally walking away from Firefox. I use my keyboards more than my mouse, and how many times does your finger slip and hit Command Q instead of W. How come FF can't reset something as trivial as this? So many people are having problems with this?
    Feels like FF has become too big, too slow and just not cooperative anymore. What a shame, I've been using Netscape/Firefox for 13 years. This is silly.

  • When I close and reopen firefox, it restores my tabs, but it restores tabs from hours or days ago, not the ones that were open when I closed the window - why?

    I normally keep my Firefox window open for long periods of time because I have a lot of active tabs. When I close the window and reopen it, I am still able to restore tabs, but as of a few weeks ago, it has stopped restoring the most recent version. Normally, when I would close and reopen, the tabs would be the same ones that were open when I closed the window. Now, it restores to a version from a few days ago instead of the current version. I have to revert to pulling my more recent tabs out of the recent history. I checked my options and I can't figure out any way to control this. How can I fix it so that I can count on my Firefox window to restore the tabs that I actually care about?

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    *http://kb.mozillazine.org/Session_Restore

  • How do I move a group of tabs before closing a window?

    I recently lost all my custom settings on Firefox after an aggressive tech support person "cleaned" my browser settings. When this happened, I lost the ability to move my open tabs to a new group before closing the window they were in.
    Previously, when I had multiple windows open, and I initiated an "Exit" or "Close" command on one of the open windows, 2 things happened:
    (1) First I received a warning message asking me if I wanted to close the window
    (2) Then I received a second warning message asking me if I wanted to move my tabs before closing the window.
    Now, I only receive the 1st message, and I am no longer offered the option of moving my tabs to a new window before closing the current window.
    I've tested this both with and without the Tabs Group Manager which I was using prior to the time my browser was "cleaned", and I still have not found a way to restore this missing feature.
    Unfortunately, I don't know if this feature/option is:
    -- provided as a default in Firefox
    -- a customizable feature in Firefox, or
    -- a feature in a Firefox add-on.
    Can anyone tell me where/how to restore this option to move a group of tabs before closing a window?
    Thanks,
    Metta

    Thank you, guigs2, for your feedback, and my apologies for the confusion. After rereading my question, I realize I made a couple of typos in my original help request which cannot now be corrected. Specifically, the 2nd sentence in the first paragraph should have read:
    "I lost the ability to move GROUPS of open tabs to a new WINDOW before closing the window they were in."
    This means that, as far as I can tell, neither of your plugin recommendations applies:
    -- Apparently, Tab Mix Plus only applies to manipulating tabs WITHIN the existing window and, unless I am missing something, I did not see any reference to the option I'm looking for -- specifically, an automatic prompt offering to move groups of tabs to a new window before closing the existing window.
    -- Unfortunately, the other plugin you mentioned (Tag Cloud) appears to be non-functional in the current version of Firefox, based on the most recent user reviews.
    In light of this, I will consider the possibility of resubmitting my question with the typos corrected -- and, in the meantime, if there is any additional feedback that you (or anyone else) can offer, I would be most grateful!

  • How can I read ALL the compilation errors in a DOS window?

    On compilation using a DOS window, if the number of errors exceeds the window size, some of the errors disappear off the top of the window and I cannot read them.
    Is there an effective solution to somehow use scrolling of the DOS window or transfer the compilation errors to a file?

    Hey buddy,
    When I first started programming with Java, I wondered the same thing. I have the very best solution for you. This one is waaay easy!!!!
    There is a text editor which will not only color code your text for you, but you can easily configure it to give you the compiler /DOS output for Java. Just go to this website and download the program. Enjoy!
    http://www.textpad.com/

  • Acrobat.exe closed by Windows & "invalid annotation object"

    While I am editing comments with Acrobat 9.3.1, I get a Windows error "acrobat.exe ..... closed by Windows"
    Then when I open the PDF document, I get "invalid annotation object" error, and the file is corrupted and not usable any more.
    Please advise me what steps I need to take to this frequent errors on my computer.  Thanks.

    I too had a Multi Page PDF that had the same "invalid annotation object".
    I was able to open & use the damaged  using Tracker Software - PDF Viewer - PDFXCview (free software - Google it)
    The file opened without error in PDFXCview and I was able to save it, but reopen in Acrobat still had the error.
    I re-opened it in PDFXCview and deleated the comments on the page that Acrobat reported the "invalid annotation object", and was able to save the file, which now opens in Acrobat without the error.

Maybe you are looking for

  • Inter company PO Shipping Tab in item level.

    Hi Everybody, I want to make Inter company PO but I am not getting the Shipping Tab in item level. All Sales view is maintained in Material Master for both the Plant and Material. Could anybody help regarding the Settings of Shipping point to get Shi

  • Displaying MPEG4 stream?

    Hi All, Does anyone know how to display a streaming MPEG4 video (e.g. from a live MPEG4 camera) with Flash? Thanks for any responses, Sean

  • Definition of new search help in report RFBILA00

    Hello, I have created a new search help which I would like to include in the selection screen of the report RFBILA00. Does anyone know how to include a new search help in this report which can be used in the screen "Dynamic selections"? Best regards

  • MDIS throwing error in the map

    Hi Experts, I am facing the following issue in MDIS. I created a map and saved it with the options unmapped value = add and automap option in the configuration.Also in my model I have a compound fields for the qualified tables .I created a map and sa

  • Help!!! Need to extend the airport wireless range for my place of business

    I was recently moved to an area in my place of business where my wireless connection is just out of range from my macbook pro. My job requires me to be connected constantly to the internet and am stuck on how I can reconnect to our companies wifi net