Why is Safari on Windows XP treating Java Applets differently?

Safari on Windows (and Mac) seems to load Java Applets differently. I review of the list of installed plugins shows both the Apple Java plugin and the installed java j2se 1.6_25 applet plugin to be handling the mime type for java applets. Does this mean java applets are loaded/deployed by the Apple plugin instead of the Oracle java plugin? Is there are work around such that I can make the applets behave the same on Safari as on, say, Mozilla.
Examples of different behavior:
1) ClassNotFound exception even though all jars and classes are in the classpath (loads fine on Mozilla)
2) Malformed URL exception when running applets from Oracle tutorial pages.
3) Javascript<->Applet communication does not work.
Thanks
Al

Never got resolved, so we don't use Safari for Windows even still in 2009 b/c this site crashes Safari. But the site works on Mac Safari or Windows IE.

Similar Messages

  • Safari for Mac, webpage with Java applet, drag and drop area not working.

    At my company, we have a web page that our users access to submit media files, (QuickTime, Audio, images...), for transcoding for delivery.  The web page consists of a java applet, with an area that our users drag and drop media file into.
    After updating to Safari 5.1.2, the applet will not work anymore. Instead, the browser will "open" the quicktime and play it, instead of allowing the Java Applet to do it's job.
    CAN I TURN THIS FUNCTIONALITY OFF??
    I read that Safari 5.1.2, (when it was initially released), broke something with the THEN current version of Java, and everyone was awaiting the latest update (build 1.6.0_29) to fix it. Unfortunately, this update did not fix my issue with the functionality of dragging and dropping media files into the web page.
    It seems to me, as if, there is an over-arching functionality setting (or something) that needs to be either turned off, or in some other way DE-prioritized.
    Anyone have any ideas?
    Safari 5.1.2
    MacOS 10.6.8
    MacBook Pro

    Thanks for quick reply and help. I am able to drag multiple files but this is giving problem in case of filename with spaces like "abc def.png". Can you please put some thoughts on this.
    DataFlavor uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
                   Reader in = (Reader)t.getTransferData(DataFlavor.plainTextFlavor);
                   BufferedReader br = new BufferedReader(in);
                   String uriStr;
                   while ((uriStr = br.readLine()) != null)
                       URL url = new URL(uriStr);
                       String category = GalleryUtils.contentsPanel.getCurrentCategoryPath();
                       GalleryUtils.generateILPFromFile(new File(url.getFile()), category);
                   }Thanks
    Kanni

  • The window of a java applet is not displayed by Netscape7.1.

    I am using Netscape7.1.
    A parent window is only what opens a new window.
    Please see index.html.
    --------index.html--------
    <HTML>
    <HEAD><TITLE>OYA</TITLE></HEAD>
    <BODY>
    <FORM>
    <CENTER><BR><BR><BR><BR><BR><BR><BR><BR>
    <input type="button" onClick="WIN=open('KODOMO.html', 'win_new_comp', ''); WIN.focus();" value="Open the Window">
    </FORM>
    </CENTER>
    </BODY>
    </HTML>
    There is a button of "CLOSE" with the Java applet called "SimplaApplet.class" in the window opened newly.
    Please see KODOMO.html and SimplaApplet.java.
    --------KODOMO.html--------
    <html>
    <title>Using Applet</title>
    <body>
    <FORM>
    <CENTER><BR><BR><BR>
    <!-- for IE -->
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"width="100" height="50">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    <PARAM NAME="java_CODE" VALUE="SimpleApplet">
    <COMMENT>
    <!-- for Netscape-->
    <EMBED type="application/x-java-applet;version=1.4"
    width="100" height="50"
    code="SimpleApplet">
    </EMBED>
    </COMMENT>
    </OBJECT><BR><BR><BR><BR><BR><BR>
    <INPUT TYPE="button" VALUE="CLOSE" onClick="window.close()">
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    --------SimpleApplet.java--------
    import java.awt.*;
    import java.applet.*;
    public class SimpleApplet extends Applet {
    public void paint (Graphics g) {
    g.drawString("Simple Applet", 10, 30);
    The following operations are performed at this time.
    Step1: "Open the Window" is clicked by index.html.
    Step2: "CLOSE" is clicked by KODOMO.html.
    Step3: "Open the Window" is again clicked by index.html.
    Then, in second KODOMO.html, a Java applet and a "CLOSE" button are never displayed.
    If the same thing is performed by IE6.0 or Netscape4.75, this bug will not happen.
    Please let me know what is bad and whether there is any evasion measure.

    It forgot to write.
    The version of JavaPlug-IN is 1.4.2_03.
    OS is the Windows2000 Japanese version.
    Please access confirming this bug at the following HTML.
    http://web-p.wics.ne.jp/char_audi/index.html

  • Create a file at a Windows Vista using java applets

    I have created a java applet which is downloaded to create local file at a Windows Vista PC. The java codes are:
    File out = new File("c:/users/test/hkuesd.properties");
    FileWriter fw = new FileWriter(out);
    PrintWriter pw = new PrintWriter(fw, true);
    pw.println("#sample property file");
    pw.println("key_path=C:/");
    pw.close();
    fw.close();
    If I turn off "Users Account Control" under "Control Panel" --> "User Accounts", the file "hkuesd.properties" is created at c:\users\test and can be found using windows explorer.
    However, if I turn on "Users Account Control", I can not find the file "hkuesd.properties" using windows explorer. But the file can be detected if I run another java applet program with the following codes:
    File xpdir = new File("c:/users/test/hkuesd.properties");
    FileInputStream fis = null;
    if (xpdir.exists()) {
    try {
    fis = new FileInputStream("c:/users/test/hkuesd.properties");
    Properties p = new Properties();
    p.load(fis);
    fis.close();
    privateKeyPath = p.getProperty("key_path", "no value");
    catch (Exception e) {}
    Interestingly, if "Users Account Control" is on and I created the file "c:\users\test\hkuesd.properties" manually, the file creation codes
    mentioned above seems to create another "hkuesd.properties" at the same "c:\users\test". The evidence is I run the second java applet program which can detect the one created by the first java applet but not the one I created manually.

    I agreed that it is hardly explained in words. I
    suggested to write two
    simple java applets using the codes and you will see
    the effects:
    (1) the first applet can create a file
    "hkuesd.properties"
    (2) cannot find the file using windows explorer to
    search the whole drive.
    (3) However, can read the content of the file using
    second applet.You still haven't address your problem of swallowing exceptions. Your code might be throwing an exception that tells you exactly what the problem is. Change your code to display or log that exception.

  • Firefox 4 on Windows Vista loads java applet for my MOO site then immediately closes Java Console, dumping me from the site, so I have had to go back to Firefox 3.6.17 which works fine

    I have 32-bit Vista Business, with Firefox as my default browser. I recently upgraded to Firefox 4 and found that I can no longer access my VRoma MOO, which uses a Java applet to connect. I can connect to the site, but within 30 seconds the Java Console closes by itself (without my having done anything) and dumps me from the MOO. Following suggestions on this website, I uninstalled two earlier versions of Java which were on my computer and downloaded Java 6.0.25, the latest version. I also disabled previous Java Console extensions in the browser. None of this helped. I can stay connected with IE, and I can stay connected with Firefox 3.6.17, which I have had to install again. This is disturbing, because VRoma has many student users and I don't want them to encounter this problem if they are using Firefox 4.

    Hello Andrew.
    You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • I am running 10.5.8, and just updated my java to java 5 update10. Now my firefox is missing the Java plugin, and I can't load any Java applet at all. When I try it with Safari, it hangs when certain Java applet loads. HELP!!!

    Suddenly my Java plugin is missing and i can't load any Java with Firefox at all, even though i have it enabled in the browser! i've tried loading in java embedding plugin, but it doesn't work. what should i do???

    It's not in Tools> Add-ons >plugins?  Should be Java Plug-in 2 for NPAPI browsers 13.5.0. What are you seeing there? I don't think it's called the embedding plugin any longer.
    Might try getting the Firefox 5 standalone application. Trash the current one and replace it. Doing this won't affect your Profile or any settings.
    http://www.mozilla.com/en-US/firefox/all.html
    If it's enabled, how can it be missing?
    If this doesn't work, ask here. No need to register. Make sure you put (Mac) in the title.
    http://forums.mozillazine.org/viewforum.php?f=38
    Message was edited by: WZZZ
    EDIT. Oops, may be different for 10.5.8. Was thinking recent Java update for 10.6. But try installing a new app anyway. In the past, this got me the latest Java plugin.

  • IE7: How to block F1 key to show windows help in java applet?

    Question
    My applet use F1 shotcut key in each popup dialog(JDialog) to show application
    help, IE6 works correct, but IE7 shows windows help also besides
    applicaiton help.
    By the way, when applet got the focus, the windows help do not popped up
    when press F1 key. Who can help me?
    The owner of the JDialog is sun.plugin.viewer.frame.IExplorerEmbeddedFrame
    which is get by the following code:
    Frame jFrame = null;
    Container f = getParent();
    while ((f != null) && (!(f instanceof Frame)))
    f = f.getParent();
    if (f == null)
    jFrame = new Frame();
    else
    jFrame = (Frame)f;
    } //else

    In my testing, I found out that this works in IE7:
    <body onhelp="return false;">
    But if you call a function that returns false, then it doesn't work, i.e., the following doesn't work:
    function donothing() {
    return false;
    <body onhelp="donothing();">
    In the applet codes, this seems to be a problem only when the dialog owner is IExplorerEmbeddedFrame. When I set the owner to null, then pressing F1 no longer pops up IE help window.
    Edited by: bkyd on May 8, 2008 2:06 PM

  • Unsigned Java Applet Window

    Hi,
    I have an Applet which can pop-up a JAVA application window.
    But the bottom bar of that pop-up window says " Unsigned Java
    Applet Window". And I am not able to close the window without
    closing the first Applet window. Need some help. Thanks.

    But the bottom bar of that pop-up window says "
    Unsigned Java
    Applet Window". You can't get rid of this without signing
    And I am not able to close the window
    without
    closing the first Applet window. Need some help.you need a window listener (you can use window adapter)
    newFrame.addWindowListener (new WindowAdapter () {
    public void windowClosing (WindowEvent we) {
    setVisible(false);
    dispose();
    Thanks.

  • Did the markup for java applets change with version 4.0.5

    Starting with Safari version 4.0.5 java applets are not rendering correctly. The Java coffee cup loading image pushes the actual content down. Was the applet tag markup changed with this release?
    Take a look at the following example:
    http://tinyurl.com/p27vpq
    or
    http://preview.tinyurl.com/p27vpq
    FYI, 4.0.4 displays correctly.

    Ok...
    First, try a different user account with Safari and see if the same thing happens. If it does then it's a system wide issue, not just your user account.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Relaunch Safari.
    If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.

  • Sun java plugin for Safari for windows

    Dear Friends
    I have installed Safari in Windows XP. I tried to load my applet through safari. It doesn't ask for signing and doesn't run the applet. Actually safari uses its own java plugin . Is there any option to use sun java plugin for that one and run the signed applets. please reply immediately

    We (Sun) don't have much experience with Safari on Windows at this point. Going forward, the new Java Plug-In in 6u10 should work with Safari on Windows, once Safari upgrades their NPAPI and NPRuntime interfaces to the versions in Firefox 3.

  • Why does safari re-open my last visited page instead of my homepage? I have the preferences set to always open to homepage in new tabs or windows or upon starting safaring.

    Why does Safari open my last visited page?? I have gone into preferences and said to open to homepage when starting safaring or opening a new tab yet each time it opens to the last page I visited.

      Hold down "shift" key and launch Safari
      or hold down "option" key before quitting Safari to discard saved windows from previous session.
    Disable Resume feature.
    10.7 Lion
    System Preferences > General
    Uncheck the box next to "Restore windows when quitting and re-opening apps".
    10.8 Mountain Lion
    System Prefernces > General
    Chckmark the box next to "Close windows when quitting an application".

  • Why does Safari now open up in a very small window

    Why does Safari now open up in a very small window

    Drag the bottom right corner of the Safari window to fit the size you prefer.
    Best.

  • Safari 5.1 will not display Java applet window

    I Just updated to safari 5.1 via software update.  It will not display java applet window on http://www.goldprice.org/live-gold-price.html ,i can view it using firefox. I have done a Safari reset, done a new install of 5.1, ran disc utility, unblocked popo up winows and restarted machine

    1). restart system with original start up disc, holding down "c" key.
    2). using time machine restore from non "lion" operating system. this will kill p.o.s. lion.
    3). once back in non 10.7 OS be careful not to install via software updates, sarafi 5.1
    4). sarafi 5.1 like lion *****.
    5). if you have sarafi 5.1, degrade by typing in this: support.apple.com/kb/dl1939
         a). a very large software update that degraded my sarafi 5.1 back to sarafi 5.05
    6). streetsmart.com and java worked fine for me after this fix.
    7), also you can download firefox, and though slower than sarafi 5.05 it will load java, and stock screens.
    GOOD LUCK. my first microsoft moment with apple in 8 years of chronic love for their products. time to
    sell AAPL shares.

  • Why is Safari blocking the latest Java plugin?

    Today, I fired up Safari to access my work server but the required Java applet wouldn't run. Safari displayed "Blocked Plugin" and clicking it said my Java was out of date and/or a security risk. I upgraded to the most recent Java (7.10, I believe) and restarted everything, but Safari still blocks the plugin. Firefox does not and confirms it's installed correctly and works.
    There's no higher version of Java or my Safari (6.0.2). What is going on and how can I resolve it?
    Thanks!
    Jeremy

    I too am having this problem, and have tried every conceivable workaround.  Firefox is not an option, as it seems that the Juniper SSL-VPN product won't fire up the ncproxyd or pass the "host check" with Firefox 18 and Java7 -- so whilst other Java sites work, the VPN I need to use won't come up.
    I've tried removing everything, reboot, checking permissions -- even ran Instruments in the Developer tool to figure out how Safari makes the determination if something is out of date or not.
    There is a major Java security hole out at the moment, in the latest version, so the only thing I can think of is that perhaps Apple fired a "kill everything" command that is telling all Safari versions that no version of Java is safe.

  • Why does safari seem to have an extra window?

    New windows in Safari (5.1.9 (6534.59.8)) open, as always, shifted to the right a little from the prior window. I know the location of the first window when Safari opens because I always want it to be in the same position - therefore I always terminate the program with that window, and only that window, open. However, occasionally, when I start Safari, the window that appears is in the normal second window position. That makes me suspect that there was a window open in the prior session that I didn't know about. I am certain that there was no second visible window open when I quit the program, so I suspect something nefarious. Any ideas about this?

    Most likely just a cache issue.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari.

Maybe you are looking for