Can Not Get Java To Run in a Webview

Discussion in 'Mac Programming' started by xShane, Apr 20, 2013.

  1. macrumors 6502a

    xShane

    Joined:
    Nov 2, 2012
    Location:
    United States
    #1
    I have a webview set up and working.

    The problem is, is that Java does not work (and is not even detected) on any webpages requiring Java.

    I use http://www.java.com/verify to check for Java. It's not detected when using my webview. However, on Firefox and Safari Java works fine. I have Java installed on my computer (obviously) and also double-checked the Java preferences to make sure Java in web browsers is enabled.

    Yet, Java will not run in my webview.

    I have searched for a good couple of hours now and could not find a single thing relating to this issue.

    Your help is greatly appreciated.

    Regards,
    Shane
     
  2. macrumors newbie

    Joined:
    Nov 25, 2010
    #2
    Unfortunately I don't have a solution. But I do have the same problem. This problem started at the time when Apple started to disable java in the MacOS for security reasons, so users are forced to update the java engine. But even after updating java, only safari seems be be able to use java again, not my program.

    So I guess it's apple's fault that java won't work anymore.
     
  3. macrumors 6502

    Madd the Sane

    Joined:
    Nov 8, 2010
    Location:
    Utah
    #3
    What architectures are you running? Java 7 is not available in 32-bit form.
     
  4. macrumors newbie

    Joined:
    Nov 25, 2010
    #4
    It's a standard 64/32 Bit universal App. It doesn't matter if it is running in 32 or 64 Bit mode, Java is never working. The only difference is that in 32 Bit mode, it shows me the message "Missing plugin" where the Applet is supposed to show, and in 64 Bit mode, there's only an empty space.
     
  5. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    What delegates have you got setup/connected?
     
  6. macrumors newbie

    Joined:
    Nov 25, 2010
    #6
    All of the delegates of WebView (resourceLoadDelegate, UIDelegate, downloadDelegate, frameLoadDelegate, policyDelegate). But none of these has any references to Java.
     
  7. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    OK, but you are not, for example, blocking some resource loads?
     
  8. macrumors newbie

    Joined:
    Nov 25, 2010
    #8
    No. And as I said above, before Apple started to deactivate Java in the MacOS, everything world just fine. So I can only assume that the whole issue has something to do with Apple's attempts to block Java. Apple allows Java to be unblocked in Safari, but it looks like this is not possible for other webKit based Apps.

    Even Safari is unable to unlock "signed/secure" Java Applets, if I need to access those Applets, I first have to visit a site with an unsigned java applet and unblock Java here, then I can use the signed Java applet of the other site...

    But for normal WebView objects, Java never works anymore even the unsigned ones.
     
  9. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #9
    OK, this is going to sound odd but it's worked for me when Safari has stopped loading Java. Have you tried simply rebooting?
     
  10. macrumors newbie

    Joined:
    Nov 25, 2010
    #10
    I've rebooted may times, Java just doesn't work in my "WebView"-based App anymore, even if it works in Safari (though even Safari has difficulties in activating Java smoothly).
     
  11. macrumors newbie

    Joined:
    Jul 18, 2013
    #11
    Any luck solving this problem - I have the same one. Thank you.
     
  12. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #12
    Some other things to check:

    Do you have the latest Java for your OS X version?
    Is the JRE past its "expiration date" - which is listed on Oracle's site?
    Is the Java web plugin enabled? - this is done in either Java Preferences.app (for Snow Leopard and earlier) or the Java Preferences pref pane for Lion or newer users with Oracle Java SE 7 installed.
    Also, in the same place as checking for the web plugin being enabled, also check the security settings.
    Since Java 7u21 Java applets have to be signed now to work. Check that too.
     
  13. macrumors 6502

    FakeWozniak

    Joined:
    Nov 8, 2007
    #13
    Use at your own risk

    In the Java control panel, go to 'Advanced' tab, scroll down to 'Mixed Code (sandboxed vs. trusted) security verification' and select 'Disable verification (not recommended)'.
     

Share This Page