How to assure tht javaw.exe exits from taskbar on application exit

Hi all,
My java application acquires a license when it runs.
The problem arises when the application terminates abnormally,sometimes its javaw.exe doesnt stop.This doesnt lead to the release of license by tht application.
How can i assure tht the javaw.exe file has stopped?
Thanks & Regards
Mansi

MansiSachar wrote:
Hi all,
My java application acquires a license when it runs.
The problem arises when the application terminates abnormally,sometimes its javaw.exe doesnt stop.This doesnt lead to the release of license by tht application.At worst that is nonsensical at best you left out information.
If the application terminated, regardless of how, then it cannot still be running.
A thread in java, such as the main thread, might exit, fall out of main(), via several methods. That however doesn't mean that the application has terminated. The java app will only terminate when all non-daemon threads have exited.
"Abnormal" is less than informative. If an OS system exception occurs then the app will be terminated (see above) by the OS. Nothing in java can prevent that.
If a java exception occurs and the main thread is exited then the app might or might not be terminated (see above.)
Best I can suppose is that your main() is exiting but there are still non-daemon threads running. So you must find them and stop them. A common source of that problem is incorrectly exiting a java GUI. Because the java GUI creates a thread which must be stopped. That might or might not be relevant to what you are doing. There are other sources of non-terminated threads including of course the ones that you explicitly created but which might also exist via other third party libraries that you might be using. The same applies for those however, you must terminate them for the application to exit.

Similar Messages

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • How do I invoke a Adobe Plugin from another Client application

    Hi,
    I have written a plug in for Adobe.
    I need to know how do i invoke this plug in from an external application
    For
    e.g a VB.NET Form has a button which on clicked would invoke this plug in
    Thanks for your suggestions in advance

    Leonard
    I would like to know how to do it
    I know that you can use IAC to call a plug-in
    I need to know the function call that i need to make in order make it happen
    MenuItemExecute doesnt seem to work for me.. or maybe i am doing something wrong there
    I can call menuitemexecute("SaveAs") but menuItemExecute("MyMenuItem")
    doesnt work
    Please advise

  • How do I run an exe file from a java program?

    I need to run an exe program from within a java program.
    what do I need to do this?
    thanks

    See java.lang.Runtime.exec()

  • How to create a exe file from a Java application

    hi,
    i have developed an application in java,now i want to distribute it to my client, for this i need to build a .exe file out of this application.
    i already have a jar file ,now can i convert a jar file to a exe file.
    im trying this out with JSmooth project but im getting it right, so can anyone help me .
    thanks,
    vishal j

    if u use dos to run your app like
    "java myapp"
    u can create a shortcut link
    in target wright java remove the path
    just leave the file name without the extension,
    like this Target: "java myapp"
    when u click on appy u'll c that java gets its full path, thats fine
    that works 4 me, ofcourse ur client needs to have JRE or JDK.

  • Exit from ABAP FPM application to anothor WD application (W/O FPM)

    Hi Experts,
    I am working on a custom ABAP FPM application using roadmap pattern. I have anothor WD application w/o FPM application which calls my second FPM application. I do the navigation from my first application to FPM application using an exit plug in the window of first app. This navigation works fine. Now FPM component has following steps.These views are embed from a WD component ZFPM.
    EDIT  View - WD Comp ZFPM
    REVIEW View - WD Comp ZFPM
    CONFIRMATION View - WD Comp ZFPM
    I want a button on the EDIT screen and confirmation screen which will lead me to first application (ZCOMP1). For this I created an exit plug in the EDIT window and Confirmation window. But when I debug the application i find that even though control goes to respective exit plugs navigation does not happen. I think thats because of FPM. Can anybody please suggest the posible approach for it or is it just that this navigation is not possible?
    Thanks in Advance
    Umnag
    Edited by: Umang Mathur on May 31, 2011 1:36 AM

    Hi Baskaran,
    Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
    Then on the process event method I have coded as following.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = 'http://www.google.com/'.
    *USE_SUSPEND_RESUME = ''.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
    Thanks in advance
    Umang

  • Javaw.exe is still running when application is closed

    The application works fine. when i close the application using "x" at the top of the window the javaw.exe is still running in task manager. javaw.exe is accumulating all memory when i run the again. The same problem occurs when i run the application through jar. Any help is appreciated

    If you use
    jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    and you close de window, all your applications
    running in the JVM will be closed too because System
    exit is used. I prefer to use
    jframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOS
    E);
    Alejandro H.If you had read the OP, he was complaining that the JVM was still running even though he had closed his application, which meant he wanted to stop the JVM.

  • How can i call a jasper report from a java Application

    Hi,
    i am chiranjit , currently i working in a web based ERP project, in this project as a report building tool we are using JasperReport wih eclipse plugin . in eclipse report's are generating very well but i am unable to call that report from a java application because i have no idea about the How to call a Jasper Report from a Java Application . so please send me the necessary class names, jar files names and programe code as early as possible.
    Chiranjit

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to write to an XML file from JDE batch application?

    Hello everyone,
    I need to write data from a batch application to an XML file. I don't know how to use the XML business functions.
    I tried to use XML Publisher but the format is not the same as the client XML. The XML file has some customized format.
    I need to do it manually with business functions and ER. Please help me out.
    Some business functions I saw are Create XML document, XML Add element and XML Add attribute but the parameters are complex to
    use.
    Thank you very much.
    Edited by: Lovvy on Sep 8, 2010 2:58 AM

    The XML DB forum is better suited to your question.
    It also has a FAQ which details how to read and shred XML into tables as well as other common XML based questions...
    XML DB FAQ

  • How do you pass an ActiveX Variant from an external application to LabVIEW?

    Background: I created a LabVIEW ActiveX server. I can access it with my external application (Matlab). I have a control variable in my LabVIEW executable. I want to use Active X to set the value of my control variable from my external application.
    Documentation: The only reference in the documentation for this task is in the Using ActiveX with LabVIEW in the LabVIEW 2009 help. It simply says "Use the variant control and indicator to pass data to or from ActiveX controls." I also went through all the ActiveX examples in the example finder and did not find any vis that passed variables using ActiveX.
    Questions:
    What should my control variable look like in LabVIEW? Should it be a refnum, a variant, or a data type? Does it have to be wired to a vi connector?
    Do I need to do any magic on this variable, such as change its properties?
    How do I pass the value from my external application to the variable in my LabVIEW executable?
    Thank you.

    Hello Lyn,
     The control variable should be a refnum and it would have to be wired to Automation Open with the correct reference.
    Here are some great examples of using ActiveX Server in LabVIEW
    LabVIEW Executable Used as ActiveX Server in LabVIEW
    http://decibel.ni.com/content/docs/DOC-9647
     Calling ActiveX Code from LabVIEW
     http://decibel.ni.com/content/docs/DOC-9073
    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • How to fill out POST HTML forms from my Java Application?

    Hi -
    I am writing a little Java GUI program that will allow a user to fill out data from the GUI and then submit that data. When they submit the data (two text fields) I want to take the two text fields and submit them via the POST form method of a HTML document over the web.
    Here is what I got so far:
    host = new URL("http", "<my_address>", web port, "/query.html");
                InputStream in = host.openStream();
                BufferedInputStream bufIn = new BufferedInputStream(in);
                for (;;)
                    int data = bufIn.read();
                    // Check for end of file
                    if (data == -1)
                        break;
                    else
                        System.out.print ( (char) data);
                }What that code does is makes a URL, opens a stream, and reads the HTML source of the file at the specified URL. There is a form that submits data via the POST method, and I would like to know how to write data to specific forms and specific input types of that form.
    Then, I'd like to be able to read the response I get after submitting the form.
    Is this possible?
    Thanks,

    Here is how one of my e-books go about Posting
    I tryied in one of my projects and it works ok
    (Tricks of the Java Programming Gurus)
    There's another reason you may want to manipulate a URLConnection object directly: You may want to post data to a URL, rather than just fetching a document. Web browsers do this with data from online forms, and your applets might use the same mechanism to return data to the server after giving the user a chance to supply information.
    As of this writing, posting is only supported to HTTP URLs. This interface will likely be enhanced in the future-the HTTP protocol supports two ways of sending data to a URL ("post" and "put"), while FTP, for example, supports only one. Currently, the Java library sidesteps the issue, supporting just one method ("post"). Eventually, some mechanism will be needed to enable applets to exert more control over how URLConnection objects are used for output.
    To prepare a URL for output, you first create the URL object just as you would if you were retrieving a document. Then, after gaining access to the URLConnection object, you indicate that you intend to use the connection for output using the setDoOutput method:
    URL gather = new URL("http://www.foo.com/cgi-bin/gather.cgi");
    URLConnection c = gather.openConnection();
    c.setDoOutput(true); Once you finish the preparation, you can get the output stream for the connection, write your data to it, and you're done:
    DataOutputStream out = new DataOutputStream(c.getOutputStream());
    out.writeBytes("name=Bloggs%2C+Joe+David&favoritecolor=blue");
    out.close();
    //MY COMMENT
    //This part can be improved using the URLEncoder
    //******************************************************You might be wondering why the data in the example looks so ugly. That's a good question, and the answer has to do with the limitation mentioned previously: Using URL objects for output is only supported for the HTTP protocol. To be more accurate, version 1.0 of the Java library really only supports output-mode URL objects for posting forms data using HTTP.
    For mostly historical reasons, HTTP forms data is returned to the server in an encoded format, where spaces are changed to plus signs (+), line delimiters to ampersands (&), and various other "special" characters are changed to three-letter escape sequences. The original data for the previous example, before encoding, was the following:
    name=Bloggs, Joe David
    favoritecolor=blue If you know enough about HTTP that you are curious about the details of what actually gets sent to the HTTP server, here's a transcript of what might be sent to www.foo.com if the example code listed previously were compiled into an application and executed:
    POST /cgi-bin/gather.cgi HTTP/1.0
    User-Agent: Java1.0
    Referer: http://www.foo.com/cgi-bin/gather.cgi
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Content-type: application/x-www-form-urlencoded
    Content-length: 43name=Bloggs%2C+Joe+David&favoritecolor=blue
    Java takes care of building and sending all those protocol headers for you, including the Content-length header, which it calculates automatically. The reason you currently can send only forms data is that the Java library assumes that's all you will want to send. When you use an HTTP URL object for output, the Java library always labels the data you send as encoded form data.
    Once you send the forms data, how do you read the resulting output from the server? The URLConnection class is designed so that you can use an instance for both output and input. It defaults to input-only, and if you turn on output mode without explicitly setting input mode as well, input mode is turned off. If you do both explicitly, however, you can both read and write using a URLConnection:
    c.setDoOutput(true);
    c.setDoInput(true); The only unfortunate thing is that, although URLConnection was designed to make such things possible, version 1.0 of the Java library doesn't support them properly. As of this writing, a bug in the library prevents you from using a single HTTP URLConnection for both input and output.
    //MY COMMENTS
    When you doing URL encoding
    you should not encode it as one string becouse then it will encode the '=' signes and '&' signes also
    you should encode all the field names and values seperatly and then join them using '&'s and '='s
    Ex:-
    public static void addField(StringBuffer sb,String name, String value){
       if (sb.length()>0){
          sb.append("&");
       sb.append(URLEncoder.encode(name,"UTF-8"));
       sb.append("=");
       sb.append(URLEncoder.encode(value,"UTF-8"));
    }

  • How do I remove an "orphaned" window from a closed application?

    Hi,
    Every now and then, I end up with an "orphaned" window on my desktop, left over from a closed application. Currently, I have a login window from the Screen Sharing application that's been spinning the spoked progress wheel next to "Connecting..." for an hour or so. I've already closed the Screen Sharing app, so it's not a straightforward thing to go into Activity Monitor and kill the process. I know that I can reboot the machine to fix this, but I'm wondering if someone might know how to fix this sort of thing without a reboot. Is there some app that I can use that can tell me what process is the "owner" of this window? Since the progress wheel is spinning and I can drag the window around, it would seem that some process has control of it, but I just don't know which one.
    Thanks,
    Ken

    Hi Carolyn,
    Thanks for the information, but maybe I didn't clearly explain what happened. I had the Screen Sharing app open, and then I properly closed it down by quitting the application. But one of its windows remained on the desktop. I went into Activity monitor, and the Screen Sharing app wasn't listed in the process list at all. So I'm guessing that this window isn't owned by the Screen Sharing app itself, but from some other process that was spawned by the Screen Sharing app that didn't close when I shut down the Screen Sharing app. Granted, this situation doesn't come up very often, but I've also seen it happen with Norton Antivirus, if I dismount a volume while there's a popup window doing a "scan on mount", with the result that the "scan on mount" window doesn't go away. So given that the process with the "friendly" app name no longer appears in Activity monitor, can you suggest any way to determine which of the running processes "owns" the still-present window?
    Thanks,
    Ken

  • How do you run a (Word) Document from a Swing application

    I want to create a Word Document and then open it from a Swing application. If you can't do that directly, what else can you do to get that result.

    gwils wrote:
    How do you recover a word document on a macbook pro?
    Just as you do it on a Mac Pro or a Mac Mini.
    What version of Mac OS X? What version of MS Word?
    If you're thinking of the AutoRecover feature, you have to enable it first. If it was enabled, this
    <http://kb.iu.edu/data/ahnd.html#FindingfilesMac>
    will tell you what to do.

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How to move ADF HumanTask (ADF Project) from One BPM Application to ANother

    Good DAy!
    Problem
    We've created huge Project on ADF with difficult form and now we have to create the same (95%) form in another BPM Application
    Is it possible to migrate ADF Project from one BPM Application to Another???

    Hi,
    You can deploy the ADF Project as an ADF Library Jar file and reuse the taskflow from that jar file in another BPM Application.

Maybe you are looking for

  • Time Machine failure transfering to new computer

    Hello, I was having a lot of problems with my 2009 Macbook Pro for various reasons that lead to a lot of random restarts and frozen screens, I took it in multiple times and nothing came of it so they gave me a replacement one under Apple Care. So my

  • Thunderbolt-Firewire adapter not good for networking?!

    Hi folks, I have been successfully running a mini Firewire network between my old iMac and my MacPro for several years just using a FW 800 to FW 400 cable. NOW I bought the new iMac with Thunderbolt and the Apple Thunderbolt to Firewire adapter. Unfo

  • Slow motion and speed changes blurry jittery - SOLUTION!

    I Have had a few issues with slo mo and sped up stuff going blurry or jittery on me. This is from HD from a HC3 down converted (camera does this) to SD anamorphic (pal). I think i have found the solution - and welcome any exra content from more exper

  • The oracle_valdated RPM:  keep it in your toolbox

    A quick tip that seems 'undocumented' that is a fantastic timesaver for anyone installing the Oracle 11g database: you can save a lot of time using the 'oracle_validated' RPM package from the public-yum server. (From what I've gathered, this was offe

  • Screen Exit not getting transported - Urgent

    Hello Everyone We are implementing the enhancement PPCO0012 to display additional data in a tab on the Production Order Header. Did everything as per the documentation and activated the enhancement in SMOD and the associated project in CMOD. The tran