Inited applet closes the browser automatically

Hello everybody!
I�m new with java and have a strange problem excuting my applet with Mozilla and Internet Explorer but not with Mozilla Firefox.
I have been reading the forum but haven�t found any similar problem.
When I run my applet with Mozilla or Internet Explorer, it says 'Miniapplet inited' in the status bar and suddendly closes the browser window. However if I run the same applet with Mozilla FireFox it goes perfect.
Any idea?
Thanks in advance!!

Don�t know what happened but now it is saying the java.io.IOException: CreateProcess: ... error=2.
As I have been reading it means there's no file. If I write down the complete path it goes fine. However, I would like to run an executable file which is in the browser but wanna be executed by the client, is it possible with getRuntime.exec()??
Thanks!!

Similar Messages

  • Can applet close the Web browser window it embedded in?

    I know that a link or button in the Web browser can close the browser window. But I really don't if the applet can also do it.

    This site does have a search function you know, and if thats too much trouble there is google:
    http://www.google.com/search?q=site%3Asun.com+%22java+to+javascript%22&ie=UTF-8&hl=nl&lr=
    This should point you in the direction of a thing called JSObject
    Here is some code since I have this in my archive anyway:
    the html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
                    >
            </object>
            <!-- <![endif]-->
          </object>
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>the applet:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }

  • How the system automatically kills the process when I close the browser?

    Hi everybody,
    I have the following problem: I run a report on the web browser. Suppose the user want to detail on one of the characteristics of report. If this takes long time (there are many records in report) and the user closes the web browser, the SAP system still run the proccess (in SM50 I see the dialog process still working, althrough the user closes the browser). This didn't happen in Excel, means, if the user press the 'Cancel' button when he/she tried to detail on one characteristic, the corresponding process is killed too (I see in SM50 how the corresponding dialog process is removed).
    How can I solve this ? Any idea about this?
    Thanks in advance.
    Florina

    Florina,
    there is a timeout set for the web session and the session would get automatically terminated after some time ..
    Some options are :
    1. Use Stateless Templates
    2. There is a Web Template setting called "Automatic Session Management" which uses a page wrapper cookie and kills the session when the person navigates from the page.. - <b>have changed it from previous answer after seeing Anil's post - apologies</b>
    3. If you are using EP  , you could implement DSM Terminator for the same.
    All the above( except 3) will not be suitable for stateful templates , if you want export to excel capability , or printing capability or the capability to save the pages as HTML for local use , you have to use stateful templates.
    First you would have to decide whether to use statefull or stateless templates and then depending on the choice made , go for any of the above. In case non of them work out for you , there is another option , but that would include a lot of javascript and using some command line parameters , update this post and I can tel you about the other if required..
    Hope it helps..
    Arun
    Assign points if useful
    Message was edited by: Arun Varadarajan

  • How to close the browser from an Applet?

    Hi,
    I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed.
    I'm not able to close the browser from the applet.
    Can any body help me.
    Rgds
    Santosh

    In my experience, calling Javascript from applets is flaky at best. However, I have gotten it to work in some cases. The following code should get you started:
    netscape.javascript.JSObject win = netscape.javascript.JSObject.getWindow(applet);
    Now you can call different methods on the win object (look into Javascript documentation for details).
    It also depends on if you are using the Java Plug-in or the JVM built into the web browser. You probably need set MAYSCRIPT=TRUE in your HTML. Look into the Java Plug-in documentation for details...

  • The new version of firefox does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • Record locks created when user closes the Browser and not the Web Form

    Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
    Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
    Please let me know your thoughts. Thanks in advance.

    If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
    You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
    Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.
    cheers

  • Bookmarks toolbar disappears every time I close the browser. Have tried all recommendations.

    I have been running Chrome from several versions back when Firefox became very slow. I am now trying to switch back to Firefox. I have 27.0.1. My bookmarks toolbar disappears every time I close the browser. I have tried all recommendations I can find including reset and renaming, etc, but nothing has cured the problem. Restore to default used to work for the current session, but now that does not work. I am about to give up and stick with Chrome as this bookmark toolbar issue is driving me nuts. I am about to try uninstalling Firefox and reinstalling. And that will be my last resort unless I get a solution to this problem. I have been a Firefox user from the very beginning up till 16 or 17 and like Firefox, but this seems to be a common occurrence from my research. BOOKMARKS TOOLBAR IS A MUST HAVE!

    Hello,
    Firefox automatically creates backups of your bookmarks, which can be helpful if your bookmarks are lost or missing. To recover them, follow the instructions below.
    #Use <u>one</u> of these methods to open the Bookmarks Library window:
    #*Click the ''[[Display the Firefox button menu instead of the menu toolbar|Firefox button]]'' to open the menu and click on ''Bookmarks''.
    #*Click the ''Bookmarks'' menu and click on ''Show All Bookmarks''.
    # At the top of the Library window, click the "Import and Backup" menu and select Restore.
    # Click the date of the bookmark backup you want to recover.
    # In the new window that appears, click OK.
    # Your bookmarks from the selected date should now be restored.
    For more information, see the [[Restore bookmarks from backup or move them to another computer]] article. For other solutions, see the [[Recover lost or missing Bookmarks]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Can I close the browser window

    Hi! friends,
    I am in the process of upgrading to forms 6.0
    when we load the form in the webbrowser, is there a
    way I can close the browser window once I exit the form.
    Please advise
    Thanks in advance

    You can try this solution from Metalink:
    Customers want to close the browser's window when they close the forms application.
    Solution Description:
    USE JAVASCRIPT TO CLOSE THE WEBFORM APPLET
    Solution Explanation:
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    2.) Put the html file in the webserver root.
    3.)Inside the Form in a POST-FORM trigger you have to write a WEB.SHOW_DOCUENT builtin like this one: web.show_document('http://mywebserver.com/close.html','_self');
    In this way the web.show_document calls, the JavaScript function "closeit()", when the the applet is closing.

  • Show Confirmaiton Dialog when user closes the browser

    Hello All,
    Can we show a confirmation dialog when user chooses to close the browser in which applet is running? I know that it can be done using javascript. Can it be done using java code?
    Please suggest.
    Thank you.

    teejrama wrote:
    ..Can we show a confirmation dialog when user chooses to close the browser in which applet is running?.. You can pop a JOptionPane in the applet's destroy() method, but that will not do any good, since the browser is not asking the applet for advice on whether it is closing, it is telling the applet it is closing.
    ..I know that it can be done using javascript... Can it? How?
    If so, that would be another good reason to disable JS.
    ..Please suggest.I suggest you presume the end-user is smart enough to know when they want to close their own browser, and not interfere in that process.
    Thank you.No worries.

  • Whenever i have a mozilla browser on and i try to open another mozilla window browser it work pull up a new window. When close the browser that was on, it will still show up on Task Manager. Whats going on with this?

    Whenever i have a mozilla browser on and i try to open another mozilla window browser it work pull up a new window. When close the browser that was on, it will still show up on Task Manager. Whats going on with this?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • I used to be able to close the browser and still have the download box open and still download stuff but now I can't...what happened???!!!

    I was in the process of downloading something tonight and decided to close my browser. Unfortunately, the download window also closed and that meant my download was gone and I would have to start over again.
    I went back and started the download again and the download box showed the file picked up where it left off but when I closed the browser the same thing happened again; the download box closed when I closed the browser.
    The reason I close the browser is because my downloads download faster when the browser is closed and now that option is closed to me.
    Is this a new feature if so I don't like it as a matter of fact I would say I'm very pissed off with this new development. Please go back to fixing it so I can close the browser and still download.

    Hi cor-el:
    Thanks for responding to my post.
    I went to about:config like you suggest and changed the the thing you said. There is no improvement. Instead of my browser and the download box closing when I click on exit button/link now a box pops up with the message "If you exit now, 1 download will be canceled. Are you sure you want to exit?
    I don't need a box to warn me that if I exit that the downloads manager would close as well...I already know that and that's the problem. I want a way to stop the download manager box from closing when I exit the browser like it used to.
    Thanks anyway.

  • Is it possible to make a link in a mobile site close the browser window on the iPhone?

    I'm developing a mobile site specifically for iPhone users and on my home page I have a disclaimer saying something like do not browse this site while driving. I give them the option to continue by clicking a link or to close the browser by clikcinga link. So far I haven't been able to find a script that can handle that for mobile, or more specifically, the iPhone. Can this be done on the iPhone and what versions are limited to this feature?

    Ok let me ask you IF the IT department of your workplace does NOT want OS X installed on "THEIR" (The Companies) computers because of what they think is some type of security issue why are you trying to go against their wishes and install OS X on a computer that is NOT owned by you.
    That could cost you your job.
    If you continue down this path you will screw up the Windows install and have to take the system back to the IT department to get it fixed. What do you think they will say at that point?
    Do as you like but you would be better off just buying your own Mac computer if you are set on using OS X as your personal operating system.

  • How can I get my desktop page to open when I close the browser and then re open it?

    when I click the red x to close the browser, when I come back to open the browser later, the last page I was viewing. last session opens, even all other tabs behind it, instead of my google page (my home page)? can this be fixed) I know I can just click the google word in the search bar, but should not have to do this!

    {
    "application": {
    "name": "Firefox",
    "version": "32.0.3",
    "userAgent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0",
    "supportURL": "https://support.mozilla.org/1/firefox/32.0.3/WINNT/en-US/"
    "crashes": {
    "submitted": [],
    "pending": 9
    "modifiedPreferences": {
    "browser.cache.disk.capacity": 358400,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.frecency_experiment": 3,
    "browser.places.smartBookmarksVersion": 7,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20140923175406",
    "browser.startup.homepage_override.mstone": "32.0.3",
    "browser.startup.homepage_override.buildID": "20140923175406",
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "32.0.3",
    "gfx.direct3d.last_used_feature_level_idx": 0,
    "network.cookie.prefsMigrated": true,
    "places.history.expiration.transient_current_max_pages": 104858,
    "places.database.lastMaintenance": 1413230897,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "privacy.sanitize.migrateFx3Prefs": true,
    "storage.vacuum.last.places.sqlite": 1413230897,
    "storage.vacuum.last.index": 0
    "graphics": {
    "numTotalWindows": 1,
    "numAcceleratedWindows": 1,
    "windowLayerManagerType": "Direct3D 10",
    "windowLayerManagerRemote": false,
    "adapterDescription": "AMD Radeon HD 7670M",
    "adapterVendorID": "0x1002",
    "adapterDeviceID": "0x6840",
    "adapterRAM": "1024",
    "adapterDrivers": "aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64",
    "driverVersion": "13.151.0.0",
    "driverDate": "8-19-2013",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": true,
    "directWriteEnabled": true,
    "directWriteVersion": "6.3.9600.17111",
    "webglRenderer": "Google Inc. -- ANGLE (AMD Radeon HD 7670M Direct3D9Ex vs_3_0 ps_3_0)",
    "info": {
    "AzureCanvasBackend": "direct2d",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "direct2d"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": true,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.6",
    "version": "4.10.6"
    "NSS": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.16.5",
    "version": "3.16.5"
    "NSSSSL": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "userJS": {
    "exists": false
    "extensions": [
    "name": "Logitech SetPoint",
    "version": "6.5",
    "isActive": false,
    "id": "{F003DA68-8256-4b37-A6C4-350FA04494DF}"
    "name": "Norton Toolbar",
    "version": "2014.7.8.23",
    "isActive": false,
    "id": "{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}"
    "name": "Skype Click to Call",
    "version": "7.3.16540.9015",
    "isActive": false,
    "id": "{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}"
    "experiments": []
    }

  • When i make changers to my firefox settings and i close the browser, the changes are not saved, why?

    when i make changes in the options menu like - allow pop ups or never remember history, it works great but when i close the browser, the changes i made are not saved, this never happened on the previous version
    i have unistalled firefox4 and reinstalled it but this dows not help

    See:
    * http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for

  • How can I save a custom workspace?

    Using PSE 11, I get the panels set up the way I want, and the background that shows behind the document white like I want, and all is well. Until the comptuer loses it and I have to redo it all over. I have no idea why this happens once in a while, b

  • Read Only Access to Storage Container

    Is it possible to give Read Only access to a particular storage container without adding someone to Subscription and providing them the access key without anonymous request without going through SAS route

  • HP Laserjet CP1025nw keeps disconnecting from wireless network

    I just purchased this printer yesterday and have had no luck getting the wireless network connection to stay connected for longer than a few minutes.  Currently it's connected to my cisco router via ethernet and works great connected that way.  I can

  • Signed applets in IE

    Hi, I have a problem with signed applets in IE. I#m using JDeveloper to develop a simple applet which needs to connect to database in order to perform certain tasks. when I try to use self-signed cab files - I get error "load class --myClassName-- no

  • Is it possible through labview to set and read window¿s based file properties​?

    Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types suc