PDA

View Full Version : Can Not Get Java To Run in a Webview




xShane
Apr 21, 2013, 01:53 AM
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



grillhaehnchen
May 17, 2013, 01:46 AM
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.

Madd the Sane
May 26, 2013, 02:16 PM
What architectures are you running? Java 7 is not available in 32-bit form.

grillhaehnchen
Jun 28, 2013, 07:50 AM
What architectures are you running? Java 7 is not available in 32-bit form.

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.

robbieduncan
Jun 28, 2013, 08:03 AM
What delegates have you got setup/connected?

grillhaehnchen
Jun 28, 2013, 09:42 AM
What delegates have you got setup/connected?

All of the delegates of WebView (resourceLoadDelegate, UIDelegate, downloadDelegate, frameLoadDelegate, policyDelegate). But none of these has any references to Java.

robbieduncan
Jun 28, 2013, 09:45 AM
OK, but you are not, for example, blocking some resource loads?

grillhaehnchen
Jun 28, 2013, 09:59 AM
OK, but you are not, for example, blocking some resource loads?

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.

robbieduncan
Jun 28, 2013, 10:01 AM
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.

OK, this is going to sound odd but it's worked for me when Safari has stopped loading Java. Have you tried simply rebooting?

grillhaehnchen
Jun 28, 2013, 10:23 AM
OK, this is going to sound odd but it's worked for me when Safari has stopped loading Java. Have you tried simply rebooting?

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).

catherinewhite
Jul 18, 2013, 03:39 PM
Any luck solving this problem - I have the same one. Thank you.

wrldwzrd89
Jul 19, 2013, 08:12 AM
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.

FakeWozniak
Aug 12, 2013, 09:57 PM
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)'.