Applet crashing the web browser

Hello group!
I have just done a simple applet that is embedded in a html.
Every time I close the html, the browser sends and error report. I am thinking that maybe I should have included a close method into the applet or aomething like that.
Please, help me because is quite a nuisance to have this problem every time I run the html page.
public class "name" extends Applet{
public void init(){
public boolean action(Event event, Object what) {
Thanks for your help.
EBU.

Hi EBU
Must to have more info to talk about but consider such details:
1) customize "stop" and "destroy" methods since there is not a "close" method in Applet class.
2) use System.gc() to dispose/release unnused objects and variables, should free some memory and memory management is the real problem that causes browser to crash. Remember that win is a bad manager.
3) Using Sun JVM as default? Try it. There will be no surprise if crash stops.
4) Make an extra effort and deploy using SWING so you will have better applets in functionality with less system dependency.
If nothing solves the problem, please detail it as possible, debug it and post new questions.
Regards.

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 to display applet in the web browser?

    Hi Just want to ask help. Im making an application and i want to display applet in JSP. The problem is when i run my application there's no display in the browser. I already try to put the JSP and the Java Class with the same folder but still not working. Kindly help me with this one..
    Code:
    <jsp:plugin code="appletImage.class" codebase="applet" type="applet">
    </jsp:plugin>
    With this one i put my class in a package

    I think (correct me if im wrong) that that is the old way to do it i.e. it is now deprecated and that the recommended way now is to use the object tag
    Old deprecated way example
    <APPLET code="Bubbles.class" width="500" height="500">
    Java applet that draws animated bubbles.
    </APPLET>New recommended way example
    <OBJECT codetype="application/java"
            classid="java:Bubbles.class"
            width="500" height="500">
    Java applet that draws animated bubbles.
    </OBJECT>

  • Retrieving the Web Browser keystore

    Hello everyone,
    My question is in the subject : How can I retrieve the Web Browser (IE for example) keystore from my signed Applet ?
    Is it possible at least ?
    Thanks for your wisdom.
    S�bastien

    For more information, about the mobile-Forum is like this

  • Report Not working in the Web Browser

    Hi ALL ,
    Am working on a item SKU report . The report is running fine in the BIDS but once i try to view the report in the WEB Browser
    tried both Mozilla and Internet Explorer no data is shows up .
    The report has 2 report filter one is on the service and the other one is the item sku its a multi - parameter  that contains
    a list of more than 6000 different SKU . Can the filter be the reason for the report not displaying in the web browser.
    If yes kindly advice me what the workaround for it .
    I tried having the filter in the  SQL main query but it was of no use no data it was showing after having the ssrs report filter
    at least right information its showing but in the BIDS not in the main web browser.
    Kindly Help
    Priya

    Hi Priya,
    According to the description, I understand that there are parameters (@SKU and @SKUlist) in the report, and SKUlist parameter is multi-value parameter. When selecting values of the SKU parameter, the parameter SKUlist will display corresponding values. In this
    case, you should create cascading parameters, right? And you use parameters to filter the report.
    Because the data of the report can be shown in the Business Intelligence Development Studio (BIDS) environment, the issue only occurs after deploying the report to report server. Based on my research, I think it may occur because of web browser issue. I have
    known you use Mozilla and Internet Explorer to view the report but there is still no data.
    In Reporting Services, not all report functionality is supported by all browsers. In this scenario, I suggest you considering the aspects of the setting or third party add-ons of Internet Explorer (IE). You can refer to the steps below:
    1. Click Tools -> Internet options.
    2. Switch to the Security tab, click Local intranet, and then select Default level.
    3. Switch to the Advanced tab, and click Restore advanced settings.
    4. Temporarily disable third party add-ons. For detailed steps, please see the link:
    http://windows.microsoft.com/en-IN/internet-explorer/manage-add-ons#ie=ie-10
    Reference:http://technet.microsoft.com/en-us/library/ms156511(v=sql.105).aspx
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • How do I get the Adobe toolbar to display above a pdf in the web browser?

    Hi guys,
    I'm just having trouble with locating the grey toolbar, it's not displaying when I open a .pdf in a web browser.
    I can open the .pdf fine, (within Safari), and usually (on my old computer) there was a grey toolbar above the .pdf & there's a print icon on it - that's what I'm looking for, so that I can print my lecture notes straight away.
    The toolbar won't display on the web browser above the .pdf, but if I save the .pdf & open it with Adobe Reader, then the toolbar displays there with all of the icons etc.
    So I was wanting to know if instead of saving them every time, if there's an option to get the toolbar displaying above .pdfs in Safari?
    Has anyone else encountered this problem?
    Any help would be greatly appreciated.

    Unfortunately, iOS does not provide a way to install "plugins" to Safari so there is no possible way the Reader can do this. You can use the "open in" functionality to launch Reader from Safari.

  • Firefox does not allow me to 'paste' url's/rapidshare links anywhere on the web browser.

    I noticed this problem when I purchased a Rapidshare account. In Google i found the URL of a movie>highlight the link>copy>but the 'paste' option is blanked out (not available) when i come to paste the link in the web browser. I have tried ctrl-v and also the edit>paste but the 'paste' icon i always 'greyed' or blanked out. This problem does not occur on any other computer in the house, just on my laptop. It only occurs with rapidshare links (and similar URL's). I can not paste in the web browser nor can I paste on the rapidshare website because the paste option is not 'click-able'. I don't know what do to, please help.
    == This happened ==
    Every time Firefox opened
    == I just signed up to rapidshare and have the 'paste' option has never worked.

    Make sure that you do not block cookies.<br />
    See http://kb.mozillazine.org/Cookies
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Debugger not working in the web browser.

    Hi everyone,
    I am not able to open the debugger in the web browser. Its like earlier when I use to put a break point in my codes and run the browser the break point use to trigger but looks like due to some setting changes it has stopped working.
    Can anyone suggest what settings have gone wrong .
    Rgds,
    Anu.

    Yes its working now, but if I open it in internet explorer the mouse pointer and the sand closck on it keeps flickering and no codes can be seen in the debugger and the debugger doesnt open at all in mozilla firefox. It use to work fine before. Please suggest.
    Rgds,
    Anu.

  • Visual Studio 2013. Viewing a PDF file via the Web Browser control in Windows 8.1

    I am writing a Windows Forms application in which I need to view PDF files via the Web Browser control. When the control is given the Navigate() command, Windows takes over and asks which program I want to open the file with. All was fine with VS 2010 and
    XP. I have un-installed "PDF Complete", which was the default PDF viewer, but I now get asked for an alternative.
    Thanks in advance.
    Mike Saunders

    Hi Mike,
    It seems that we could use Internet Explorer to open a local .PDF file if it has the Adobe Reader. I doubt that the web control would be related to it. Like the MVP's suggset in the following thread, maybe it would be related
    to certain plug-in tools in your side like the adober reader.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/a717117e-41ae-4775-9c28-d5a1042b396e/pdf-is-not-opening-in-web-browser-control-in-vbnet?forum=vbgeneral
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Yoh, what is FSCCommanr ? sorry man I am an absolute beginner in Flash. I tried the code:
    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.
    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
       Keep the quotation marks ("").
    instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void {
      navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    this is the same code I used before and it opens a pdf file in a web browser, and it doesn't open an AutoCAD file.

  • An error occurred while trying to communicate with the web browser.

    I have opened a PDF in the Acrobat reader V 8.2.4. It has live links.
    Only the FF browser is open.
    When I click a link in the PDF, I successfully get the message 'The document is trying to connect to...' which I allow and then successfully hyperlink to the web page displayed in FF.
    When I click an image in the PDF, which has a url attached to it, I get the message 'An error occurred while trying to communicate with the web browser.'
    [Sorry to say in IE7 when I click the image, I hyperlink to the web page like I do when I click the link.]
    Question is: What setting or other step do I need to take with FF so when I click the image in the PDF I link to a web page like I do when I click the link in the PDF?
    Thank you!

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Adobe Shockwave for Director Netscape plug-in, version 10.2
    # Adobe PDF Plug-In For Firefox and Netscape 8.2.4
    # Shockwave Flash 10.0 r22
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Adobe Reader]] plugin to the latest version.
    *http://get.adobe.com/reader/otherversions/

  • My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    I'd maybe try doing a search for Safari on your iPad first (swipe to the left to search). If it shows up in that search you can go to Settings > General > Reset and choose 'reset home screen layout' which will put it back where it would be by default.
    All else fails? Restore it.

  • I wanted a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    I want a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat Pro 10.1.12  file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    Change browsers. See what happens.
    Be well...

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • Changing the application name that appears on the web browser

    Hi All,
    Thanks in advance for taking your time to reply to this question.
    As a standard behavior, the WD application name in the project is displayed in the web browser the application is executed.  How can i show a more user friend name instead of the application name which typically is more cryptic.
    Eg: if my application name is TestWDApp, the title of the browser show TestWDApp when the application is run.
    Cheers
    Renchy

    Aha .. that worked!!!   That was easy
    Thanks a lot.
    cheers
    Renchy

Maybe you are looking for

  • HT1689 I purchased an album on iTunes & the songs were downloaded but only 1/2 of each song plays

    I have purchased a couple of albums on iTunes for my iPod touch and when I play them both on my computer and on my device, some of the songs get cut off 1/2 way through the song and it automatically skips to the next song. Is there any way that I can

  • Home Sharing between laptop and PC - Music in Libraries not showing up

    Hi, I'm trying to transfer my library from my laptop to my new PC through homesharing. I have turned on homesharing on both computers. On my laptop, I can see my PC's library, but on my new PC, I cannot see my laptop's library. On my laptop, I can dr

  • Problem trackpad macbook pro 13'

    Pointer is moved automaticaly =/ and clicking automaticaly. Only update trackpad to MacbookPro Retina Help me. Thank's.

  • SSD Maintenance

      How Trim Works - The OS sends a TRIM command at the point of file deletion The SSD marks the indicated locations as invalid data TRIM Features: ► Prevents GC on invalid data ► Increases the free space known to the SSD controller TRIM Benefits: ► Hi

  • ORA-01578: How can I fix it?

    My Oracle 8.1.5 database crashed today with error ORA-01578: ORA-01578: ORACLE data block corrupted (file # 2, block # 699) ORA-01110: data file 2: '/oracle/u02/oradata/ORCL/rbs01.dbf' How can I fix this error? I shut down the database, but it does n