To resolve this runtime error message, you simply need to install Java using either of the methods outlined above, then quit and relaunch Safari web browser and return to the site(s) in question. Yes, this will fix the “To view this web content, you need to install the Java runtime environment error”Ī notable number of Mac users have discovered an error message when using Safari to browse the web, the message is almost always a pop-up window that says: “To view this web content, you need to install the Java runtime environment.” That’s all there is to it, enjoy your Java in OS X Yosemite.
That just takes you to this Oracle website where you can download the latest installer for either the Java 8 JRE (the runtime, for most users) or the Java 8 JDK (the Java development kit, for developers).
Click “More Info” to visit the Java Developer Kit download website.”Īs you may have guessed, click on “More Info” to launch the Java site in your default web browser, don’t click on OK it just closes the alert box. If you do not currently have Java installed, you’ll get a message that says “No Java runtime present, requesting install.” soon followed by a popup message that says “To use the ‘java’ command-line tool you need to install a JDK. Launch the Terminal in OS X Yosemite and type the following command: 2: Get the Yosemite Compatible Java 8 Installer from the Command Line If you want a more recent version of the JDK or JRE, you can get that directly from Oracle. While this version installs in OS X Yosemite just fine (despite having the Lion icon shown on the Apple support page, just ignore that as there are no lions in Yosemite) it’s actually JRE 6, which is not the most recent version. 1: Grab a Yosemite Compatible Java Version from AppleĪpple offers an (older) Yosemite compatible version of Java on their website: Which one is undefined.Keep in mind that many Mac users do not need Java anymore, so if you’re not sure whether you need Java in OS X, you probably don’t, and you’re probably better off just avoiding this.
When I look at the console log, I can see a couple of java related messages including:ġ1/5/15 11:18:17.171 AM java: Īt (SunToolkit.java:1090)Īt (SunToolkit.java:1085)Īt (SunToolkit.java:1080)Īt (Toolkit.java:1734)Īt (EventQueue.java:1264)Īt .MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)Īnd (which doesn't seem to affect launching when I run javaws manually)ġ1/5/15 11:13:38.731 AM java: objc: Class JavaLaunchHelper is implemented in both /Library/Internet Plug-Ins/ugin/Contents/Home/bin/java and /Library/Internet Plug-Ins/ugin/Contents/Home/lib/jli/./libjli.dylib. Juniper Networks SetupClient 7.2 is what got downloaded when I first tried to log in, this is what's installed Installed latest Firefox, set Java Applet plugin to "always allow" running I've also tried the old Apple JDK with exactly the same results. Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java confirmed running and java -version gives me: Install latest Oracle JDK (currently running JDK 8u65) and have cleared temporary files from the Java control panel + added my corporate login site to the "Exception site list" for good measure. I've gone through an hour of troubleshooting with our support team but I still can't log into our corporate network via the usual method which is:ģ) Wait for Junos Pulse client to launch and establish VPNĤ) Open RDC and connect to my desktop in the officeīasically, it's failing at step 3, my credentials are accepted, I get a Java popup asking if I'd like the java application to run and then I get a beachball which eventually leads to either Firefox (latest build) or Safari (latest build) to hang and require a force quit.