Unable to clear DOS window after running JAR

Hi guys,
I am trying to write a batch file to launch my JAR, this is because the JAR is on a networked drive, and each user can have a .bat file on their desktop to run it.
Anyway, when the .bat file is run, the DOS console pops up behind it but I don't want it there,
How can I make it dissappear after the JAR is launched, or even better, not come up at all?
I have tried all these to no success.
call "H:/folder/myApp.jar";
exit
call "H:/folder/myApp.jar";
end
javaw -jar H:/folder/myApp.jarThanks in advance.

Why don't you create a shortcut to the jar file?
Then you won't have a bat or a dos window to close.

Similar Messages

  • Hide MS-DOS window when running java

    I'd like to know i can hide the MS-DOS window when i am running my program.
    I try this in file.bat, but it doesn't work.
    file.bat:
    javaw myProgram
    exit
    any ideas?
    thank you.

    Well, your method works for me.
    You can trycall javaw YourProgram
    exitas well, but I doubt if it will make any difference.
    Kind regards,
      Levi

  • Lookout 6.02 stops putting alarms in the alarm window after running awhile

    This system has worked fine for a couple of years (well except for not being able to print alarms -but we will tackle that later)
    What appears to be happening is that on restart everything looks good and we have alarms visable in the alarms window. But, after awhile say an hour or so, the alarms stop showing up in the window.
    I believe this has slowly crept up to this point as the Customer has on occassion stated that an alarm was not in in the window even though you could see it on the main system screen. 
    Running Windows Xp Pro.

    After an hour or so, do all alarms stop showing up in Alarm Window?
    Could you let the customer check the alarm database by MAX? Create an Alarm Viewer and check if the missing alarm is in the database.
    The customer can also follow this KB to check the settings.
    http://digital.ni.com/public.nsf/allkb/A4F007F96AB1EB1E862569C30080C731?OpenDocument
    Ryan Shi
    National Instruments

  • Clear Reports cache after running report

    Hi
    Is there any way I can programmatically clear the reports cache on the 9iAS server once the report has been run ?
    I am using web.show etc in my forms and would like to delete the report once I exit the form.
    I have the jobid - but how does that relate to the physical file on the disk ?
    Ideas anyone ?
    Andrew

    I am having the same problem.
    I manage a database with highly confidential data that has forced me to implement a Virtual private database (VPD) on Database 9i release 2.
    Once users run their reports, copies are saved on the reports cache on Oracle9iAS. The reports in the cache can be viewed by anyone who knows the URL http://my9iASserver_name:7778/reports/rwservlet/getjobid1?server=myrepserver_name
    without the need of authentication (username and password).
    This negates the work I have done on the VPD, moreover everyone including the intenal auditors think that the system is bogus since a user can access information that does not belong to them without being restricted.
    The solution I require is either to bypass the reports cache (or any other cache involeved including the web cache), or if this is impossible, then a program to delete any report as it hits the cache. So that at any given second, the reports cache is empty.
    I am also aware that the minimum time you can schedule a task on the windows scheduler is 1 minute which is too much.
    At this time, my focus is not the performance of the Oracle9iAS but its security and management does not care how slow it becomes as long as it is secure
    Your help is appreciated

  • Bat file to hide the ms dos windows when running SWING component

    Hi guys,
    Could somebody tell me how to do the following?:
    I want to create a .bat file which will be installed on my desktop, so that the swing jar file component is run, and open an application, but with the peculiarity that I don't want the MSDOS console open.
    The best example about this, is Oracle Enterprise Manager, which is built on java and doesn't show any MSDOS (CMD) windows while executing.
    Tx.

    Correct.
    Also note that if your code runs on multiple platforms, javaw is only on Windows.
    Rob

  • Unable to open Popup Window after transporting using NWDI

    Hi
    I am using Nw04 SP19. I have created a window using createWindow() and createModalWindow() too. The Window opens if we use direct deployment into  the server, whereas afer we transport thru NWDI the window dosent open and gives null pointer exception.
    Even creating ConfirmationDialog has the same problem.
    The Issue occurs after Assembly is Done in NWDI i.e after SCA files created ( just thought this info is useful).
    Any comments on this is appreciated.
    Thanks
    With Wishes
    Krishna kanth

    You say its urgent
    So urgent, so oh oh urgent
    Just wait and see
    How urgent my love can be
    Its urgent

  • How to Clear dos screen while running java program

    Any one know how?

    You mean clear as in get rid of?
    Try using javaw instead of java as your command.

  • Unable to Switch to Windows after installing Macfuse and NTFS 3G

    I just put those two pieces of software on my Mac and now when I go into start up drives there is only my Mac drive no windows drive. And when I restart and hold option nothing happens. Anyone have any ideas?
    By the way if you dont know what those applications are for they allow you to copy files from the Mac to the PC with drag and drop.

    I agree with khassani that there should be no disruption of the OPTION key booting nor the use of Startup Disk to switch boot volumes. Something else is at play. OPTION booting is part of the ROM which means it should function even if no OS is installed. If you cannot even get to the boot manager screen, then it indicates a problem with the keyboard. Any chance you switched the keyboard map?
    If you check the console log is there any indication there of something awry?

  • DOS Window automaticly close after execute the batch file and start the App

    Hi, all. I have made a batch file. When I start the batch file, thet is getting open the DOS Window. But I want close the DOS Window after Start the Application, or make it hidden?
    It is possible?
    Thanks all:-)
    Nikolay

    Hi,my batch file is:
    java -cp File.jar Desktop
    I have tryaed with:
    javaw -cp File.jar Desktop , but it dosn�t close the DOS Window.
    Have I make anythink false?
    Thanks.
    Nikolay

  • Running executables in a DOS window

    I'm in a bind that I think has two possible solutions.
    What I need to do is get an exe running. Normally, when you double click on it, it opens up a DOS window and runs in that. If I use Runtime.getRuntime().exec(), then the app runs invisibly, which is not good (for testing).
    On top of this problem, one I have the app open I need to navigate through the menu system as if someone were actually sitting there typing. There are no APIs defined for interaction with the program.
    I think one possible solution is to use Runtime.getRuntime().exec() to run a batch file that will open the program. However, if I use this approach then I will need to detect the newly running GUI so I can "type" into it, possibly using the Robot class.
    Another solution is to have Java open a DOS window itself and run the program from inside of it. This seems like it would be more straightforward because I would have all the handles necessary for interacting with the window, again with the Robot class.
    I can't find any information on working with Dos apps through Java, and I'm not sure which, if any, of these approaches is feasible. Does anyone have any advice?

    no, the apps don't run "silently" when you use
    Runtime. Instead, the Process object gives you
    access to their input and output streams.
    Essentially giving you the Dos console that you're
    e used to programatically. You can write to and read
    from its streams in any manner you like.Thanks Brent. Unfortunately for me, the app I'm using doesn't output anything java's input stream can read. It's one of those old graphical menu kind of interfaces.
    The other reason that I'd like to run it graphically is that I would be able to see what my program is doing while I'm debugging it. Since I have to do things like press "down arrow" it would be a lot easier to use the Robot class than to tell Java to send those sequences across.

  • Invoke command in new dos window

    is there any way that i can invoke a command in a new dos window from java application?
    such as
    runtime.exec("dir");
    it will open another dos window, and run dir in it.
    thanks

    it will open another dos window, and run dir in it.This works for me (win 2000):
    Runtime.getRuntime().exec("cmd /c start dir");

  • Any way to close the DOS window ?

    Is there anyway to close the DOS window, after executing a DOS command in a GUI Java program ?
    I keep getting "Please press any key to continue..."..I don't think I can use the System.exit in a GUI Java program?

    Yes.
    Process p = Runtime.getRuntime().exec(...);
    PrintStream out = new PrintStream(p.getOutputStream(), true);
    out.print("a");You get the output stream of that process and print an a (which I guess will work just like you pressed a key). I don't know if there has to be a delay before you write this character. If you send it before it has written "Press a key ..", then it might not work. In this case you can add a line with Thread.sleep(1000); to sleep for 1 sec in this example, just before you execute the print statement. Or you can get the InputStream from the process, and read everything it sends and check if/when you get the "Press a key .." text:
    PrintStream out = new PrintStream(p.getOutputStream(), true);
    BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String s;
    while ((s = br.readLine()) != null) {
      if (s.startsWith("Press a key")) {
        break;
    out.print("a");something like that..
    There might be cases where you don't get a "Press a key" back if the DOS window is big enough to hold all the information (it is possible to change the buffer for DOS windows so they can hold more than 25 lines).

  • I have a new iPad wi-fi lte 16gb.when I try to sync thru I tunes it keeps on accessing I tunes stores.i have windows xp service pack 3.after running diagnostics it showed iTunes secure connection failed.unable to sync completely even once. Plz help.thanks

    I have a new iPad wi-fi lte 16gb.when I try to sync thru I tunes it keeps on accessing I tunes stores.i have windows xp service pack 3.after running diagnostics it showed iTunes secure connection failed.unable to sync completely even once. Plz help.thanks

    I'd try the following document: 
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Unable to access BCM 2010 DB with Outlook 2010 after running compatibility pack for Outlook 2013

    After reading about the Description of Business Contact Manager compatibility pack for Outlook at this link http://support.microsoft.com/kb/2793723 it clearly states "Business Contact Manager for Microsoft Outlook is a compatibility pack that enables
    Business Contact Manager for Outlook 2007 and Business Contact Manager for Outlook 2010 to run in Microsoft Outlook 2010 and Microsoft Outlook 2013. Business Contact Manager for Outlook (BCM) also supports using Outlook 2010 and Outlook 2013 in a side-by-side
    installation."  This link also states "General product fixes, including stability and performance improvements."
    So, I was hoping for some stability and performance improvements but desired to continue running from Outlook 2010.  After running this downloaded compatibility pack it had little messages other than completed. If I try to run it again it says the database
    is already updated.  however, now I cannot open the BCM DB in Outlook 2010.  when I try to connect to it from Outlook 2010 BCM it only opens a small window with no message, only a yellow exclamation sign.  It also won't allow me to restore the
    back up.
    Can I undo what the compatibility pack program did to my BCM 2010 DB?
    Now it won't allow me to restore a DB from two days ago. It gives this error "Access is denied due to a password failure. RESTORE FILELIST is terminating prematurely".  I know the password is correct.
    Please help, anyone? Now I'm starting to freak out a bit.  I am going to reinstall BCM and pray.
    I was able to restore the two day old DB by not entering a password. Odd since I know I backed up using a password.

    Hi,
    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • The Dos window disappeared quickly after Tomcat 3.1 started

    Hello,
    I need to see the debug statements of my web app.But the start window of Tomcat 4.1 disappeared quickly after it's launch.The Tomcat just work ok.I don't
    have a Java Web Services Developers Pack in my computer.The Tomcat is stand alone.
    Even Tomcat 4.0 in JBuilder7.0 of my machine got the same problem.
    Thx a lot,in advance

    I'm not entirely sure how Tomcat 4 standalone handles this but there are several other options you could try.
    You could attempt to run tomcat from the command line rather than from a BAT file, ie. startup a DOS window and type 'startup' and press enter (you will be able to do this from anywhere if you have the 'bin' directory of your Tomcat installation in your PATH environment variable, otherwise you will have to navigate to this directory to run it).
    If this doesn't work, search for a file in your Tomcat installation directory called 'catalina.out'. It may be under a 'logs' directory. If you can find this then you may find that this is where your std output is. If you are using an editor such as Textpad, it will prompt you to reload itself whenever the file has changed and you are trying to view it so it's not too much trouble.
    I hope this helps.
    KRgds
    Marc

Maybe you are looking for

  • Web Service - Expose BI data

    Hi, We are in BI 7, trying to expose BI data using QUERY_VIEW_DATA. I did basic configurations using Tcode - SICF. In WSADMIN, when I execute " Web Service QUERY_VIEW_DATA default_host/sap/bc/srt/rfc/sap/ QUERY_VIEW_DATA " getting following error mes

  • IPod is in use by another user on this computer

    I don't have a multi-user setup on this mac! I've tried restoring the factory settings to default using ipod updater, but no luck. This is likely to be related to my previous problem: http://discussions.apple.com/thread.jspa?threadID=256209&tstart=0

  • System Tray application

    I am using the Java 6 feature for creating System Tray capable applications. I have used the SystemTray.java example from Sun and this works fine. What I need to know is how I hide the application in the Task Bar. The user would then need to click th

  • Java.sql.Timestamp: does not have a no-arg default constructor ERROR

    Hi, I am using jaxws(jwsdp2.0) and when i use the apt tool I get this error because I use java.sql.Timestamp as one of the fields in a class. What is the workaround for this problem? Any help is appreciated. Thanks, Vijay

  • Help w/ Audition CS6

    Hello, I am using Audition cs6. I have a macbook pro running OS10.10.1 in conjunction with M-Audio fire wire solo. This is the first time I have tried to use this set up on this computer. If my mind serves me right, I believe I have to install a driv