阅读657 返回首页    go iPhone_iPad_Mac_apple


Java fails

Hi folks,

 

I'm sort of a newbie into Apple OS X, so throughout the summary  don't expect me to use the right terms.

Can't remember if Java was installed by default or not, but long story short, and after several attempts to remove and reinstall java for the 10th time I gave up. Can't get it to work!

My macbook is running Sierra 10.12.6, and I have got installed the Java version 8.144.Screen Shot 2017-08-07 at 18.13.23.png

Screen Shot 2017-08-07 at 18.14.15.png

The installation doesn't thrown  any error at all, but when I browse to the portal to test my Java version (Verify Java Version) it always results on the following:

Screen Shot 2017-08-07 at 18.16.05.png

After this, and more importantly, sometimes I also notice that there is a Java process using 95% of the CPU, which leads to high temperatures on the body of the laptop.

Also, another thing which for me is a bit strange, is the fact that if I run "Java -version" on the command line, it shows that I'm running version 1.8.0_13 which doesn't match what the Java plug-in (shown above) lists.

Screen Shot 2017-08-07 at 18.19.26.png

Have any of you guys come across any of these issues? do you know perhaps how to get around these issues.

 

Thanks.



Before delving deeper into this: what exactly are you trying to achieve? Where do you need Java for?



Thanks for your reply. Well basically I need to run some web java applications, and as I shown even the basic test Java application fails.



OK, let's try the following simple step: Use safe mode to isolate issues with your Mac - Apple Support

 

Does Java verify in safe mode? And does it still after a normal reboot?



Hi Esquared,

 

Thanks for your email.

I have tried the Safe Boot, but it didn't work, Java still fails to work.



While you may have installed Java, Safari automatically blocks it. You must specifically enable Java for each website in the Security Preferences.



Hey Barney,

 

Thanks for your reply.

Yes, if it was disable it would obviously not work, but it's enabled though, unless there is another section to enable security plugins.

here follows a screenshot.

Screen Shot 2017-08-11 at 15.53.29.png



I failed to mention that the Java website rarely ever validates that Java is installed on Sierra.

 

Are you asking about Java or Citrix Receiver? You have Citrix Receiver selected in your screen shot.

Does Java applets work on your enabled websites?

If not, on that dialog, hold down Option key and click on the Ask popup menu. See if you can disable "Run in Safe Mode"



I'm sorry, failed miserably to capture the right screenshot, but yes, I was supposed to show the Java Plugin enabled. Nothing to do with the Citrix plugin. Actually one of the reason why I need Java is to run a web application which calls the Citrix Receiver.

I can't get that "Run Safe Mode" Option on the Safari, what I tried some while ago was to run the OS in Safe Mode, is it the same thing? if yes, then it wouldn't make any difference because even on that mode the Java application fails.



I just installed update 144 from Java.com and after restarting Safari, it asked to enable java for Java.com and the verifier worked.

The Java web applet plugin does have a "Run Safe" option:

Screen Shot 2017-08-11 at 10.26.35 AM.png

You have to hold down the Option key prior to clicking the popup menu. That may enable it to work with the Citrix Receiver stuff.

 

As to the Version, there are two types of Java, one that runs on the OS (Mac, Windows, Linux, etc) and one that runs in a Web Browser. If you install from java.com, it will be the web applet plug-in only (although you can actually use the web plug-in to run Java apps on the OS).

 

If you go to Oracle and download a Java SE version, it will install both. The version information in Terminal will not show the Java.Com web plug-in version, only the Java SE version that runs on the Mac OS itself.

 

So, you have an older Java SE version installed, but since there is a later version, the older one is likely permanently blocked in Safari.



Hi,

 

I have the same problem and I hope someone could provide some advice on how to fix it...

 

macOS Sierra 10.12.6

Safari 10.1.2

Java 8 update 144 (installed both the JRE and the SDK, fresh install on a new MacBook Pro)

Safari - Preferences - Security - Plug-in Settings... - Java - java.com -> It's On and "Run in Safe Mode" is selected

System Preferences - Java - Security -> "Enable Java content in the browser" is enabled

 

Java won't verify on the Oracle website (Verify Java Version). Error message is:

FailedDownloadException

Unable to load resource:

https://www.java.com/ga/applet/verify/JavaDetection.jar

 

I booted in Safe Mode and have the same problem.

 

Any idea?

 

Many thanks in advance!



Sorry. I have no idea. I've only seen the verification work once.

 

Do Java applets work? How about Java itself?



More information on this. The configuration on my old MacBook Pro on which Java is running perfectly fine:

macOS X El Capitan 10.11.6

Safari 10.1.2

Java 8 update 141

 

The differences between my old and new MacBook Pro are the OS and the version of Java. So, I thought I could install Java 8 update 141 instead of 144 on the new one and give it try. Result: It doesn't work, same problem as with update 144.

 

I then tried older versions Java, starting with the oldest possible version of Java 8 and making my way up to newer versions one by one. Some of them just won't install because they are too old. Some of them would install but Safari won't let them run because they are out of date, no matter what you try to make them run, Safari won't let you do it.

 

When I reached Java 8 update 25, I was able to make it run in Safari but I got my same old error message of

FailedDownloadException

Unable to load resource:

https://www.java.com/ga/applet/verify/JavaDetection.jar

 

So, it looks like the problem is not in Java but in macOS Sierra. I'll keep digging but my knowledge of macOS is limited...

 

If anybody has a clue, please feel free to share!

 

Thanks



I don't know what the problem may be but this is what I see in Safari…

Screen Shot 2017-08-17 at 1.37.18 PM.png



So, I thought I could install Java 8 update 141 instead of 144 on the new one and give it try. Result: It doesn't work, same problem as with update 144.

 

I then tried older versions Java, starting with the oldest possible version of Java 8 and making my way up to newer versions one by one.

As you found out, that is completely fruitless because macOS blocks older versions of Java. Much like Flash, it is a high risk threat vector, so old versions are blocked when a thread is identified or when a new update comes out.

 

Once again, ignore the Java verification. It may or may not work.

 

Do your Applets work or not?

Are the websites enabled to use Java in the Safari Preferences?



最后更新:2017-08-18 09:28:30

  上一篇:go How to find "repair permissions"?
  下一篇:go Sierra: Is there any way to show image dimensio...