Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 21, 2013, 01:53 AM   #1
xShane
macrumors 6502a
 
xShane's Avatar
 
Join Date: Nov 2012
Location: United States
Can Not Get Java To Run in a Webview

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
__________________
Macbook Pro 15" 2.6, 8GB, 750GB, 1GB VRAM
"Everything for the people, nothing by the people."

"Be the change that you wish to see in the world."
xShane is offline   0 Reply With Quote
Old May 17, 2013, 01:46 AM   #2
grillhaehnchen
macrumors newbie
 
Join Date: Nov 2010
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.
grillhaehnchen is offline   0 Reply With Quote
Old May 26, 2013, 02:16 PM   #3
Madd the Sane
macrumors 6502
 
Join Date: Nov 2010
Location: Utah
What architectures are you running? Java 7 is not available in 32-bit form.
Madd the Sane is offline   0 Reply With Quote
Old Jun 28, 2013, 07:50 AM   #4
grillhaehnchen
macrumors newbie
 
Join Date: Nov 2010
Quote:
Originally Posted by Madd the Sane View Post
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.
grillhaehnchen is offline   0 Reply With Quote
Old Jun 28, 2013, 08:03 AM   #5
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
What delegates have you got setup/connected?
robbieduncan is offline   0 Reply With Quote
Old Jun 28, 2013, 09:42 AM   #6
grillhaehnchen
macrumors newbie
 
Join Date: Nov 2010
Quote:
Originally Posted by robbieduncan View Post
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.
grillhaehnchen is offline   0 Reply With Quote
Old Jun 28, 2013, 09:45 AM   #7
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
OK, but you are not, for example, blocking some resource loads?
robbieduncan is offline   0 Reply With Quote
Old Jun 28, 2013, 09:59 AM   #8
grillhaehnchen
macrumors newbie
 
Join Date: Nov 2010
Quote:
Originally Posted by robbieduncan View Post
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.
grillhaehnchen is offline   0 Reply With Quote
Old Jun 28, 2013, 10:01 AM   #9
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by grillhaehnchen View Post
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?
robbieduncan is offline   0 Reply With Quote
Old Jun 28, 2013, 10:23 AM   #10
grillhaehnchen
macrumors newbie
 
Join Date: Nov 2010
Quote:
Originally Posted by robbieduncan View Post
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).
grillhaehnchen is offline   0 Reply With Quote
Old Jul 18, 2013, 03:39 PM   #11
catherinewhite
macrumors newbie
 
Join Date: Jul 2013
Any luck solving this problem - I have the same one. Thank you.
catherinewhite is offline   0 Reply With Quote
Old Jul 19, 2013, 08:12 AM   #12
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
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.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Aug 12, 2013, 09:57 PM   #13
FakeWozniak
macrumors 6502
 
Join Date: Nov 2007
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)'.
FakeWozniak is online now   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
java, objective-c, webview, xcode

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:37 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC