I was trying to find a download for jdk 1.6 specifically for OS X. But Oracle doesn't seem to offer one. This made me wonder if the jdk 1.6 meant for Linux would work fine on OS X. I could try running it to see if it works. But I thought I'd check here to see if there are any subtle or not-so-subtle issues that I've missed.
I have an AMD-64 architecture on my mac system.
Java 6 for Mac is provided by Apple rather than Oracle, and can be downloaded from http://support.apple.com/downloads/#Java - look for the latest "Java for OSX", which at the time of writing is 2014-001.
Related
According to the system requirements, even Java 7 requires Lion, but then I found this question: How to install java jdk 7 on Snow Leopard. Especially the answer stating that java 7 doesn't, in fact, require 10.7 and that this restriction can just be removed from the .pkg gives hope that it is possible to install even Java 8 on Snow Leopard. Any information on this?
The OS level requirements are "real" and shouldn't normally be circumvented. As to how real it is I cannot answer. Ultimately as system libraries are updated, and newer versions of JDK are compiled against them older systems won't be able to use parts of Java that use the newer functions in those libraries or even the libraries as a whole if the pointers/links have changed.
If you want to be absolutely sure Java will work on your system, you will need to compile it from source. But that is a massive pain on a Mac unfortunately. If you want to try anyway, check out the Mac Port Project over on OpenJDK.
If you're using Java < 1.7 on OS X and you need to use JSObject for connecting an applet to JavaScript, you can find it in in $JAVA_HOME/jre/lib/plugin.jar.
The "plugin.jar" archive doesn't seem to exist on Java 1.7 for OS X (as packaged by Oracle). There is a jfxrt.jar that seems to contain JSObject, but that unfortunately means that you can't use the same plugin.jar that you can on almost any other JDK, including 7u5 for Linux, which still has plugin.jar built right in.
In particular, this gets irritating if you're trying to use it as a compilation dependency for a build tool such as Maven, which you could otherwise do with a JAVA_HOME-relative path.
Java 7 on Mac OS X doesn't support the Java plugin. So, plugin.jar is simply not there. If you manage to find the Java 7 installation guide for Mac OS X on Oracle's website (good luck with that) you'll see:
Note that for the 7u4 release, Java plugin and Java Web start applications are not supported.
And, yes, 7u5 is out, but its release notes say it's just a bug and security fix. I'm assuming Oracle just didn't bother to update their installation notes. It looks like the 7u6 developer preview does include the plugin, so at least it's on its way.
The jfxrt.jar file is for Java FX, which is included in the Oracle Java 7 Mac OS X release. Of course, Java FX is built on top of Java applets and is intended to run via the Java plugin, so don't ask me why it would be included in Oracle's Mac OS X Java 7 release while the Java plugin itself isn't. (I guess you can build Java FX apps, you just can't run them?)
The real answer appears to be "don't use Java 7 on Mac OS X quite yet." Which may be one of the reasons Oracle extended the Java 6 EOL until November.
Plugin.jar is available on Java 7u6 for OS X, now available.
A third party application I'm using (Knime) hangs when using Java for Mac 1.6.0_29 (Java for OS X Lion Update 1). In the user forums of that app, it is recommended to use version 1.6.0_26.
Sadly, I got a fresh install, so there are no previous Java versions installed in my computer to downgrade to.
I've been looking for a while and still cannot find out how to install a previous version of Java for Mac OS X Lion.
Any ideas?
Too late for the original question, but, for the record, Knime has apparently fixed the error:
http://knime.org/about/news/knime-version-254-released
This might help:
- Register for a (free) Developer account at Apple: http://developer.apple.com/programs/register/
- Go to Downloads: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/downloads
- Click Developer Tools on the right-hand side
- Scroll down until you see Java for Mac OS X 10.7 Developer Package - this should include 1.6.0_26.
As an alternative, you can download the 10.6 Java Update 5 from the same page and use these instructions to replace your current installation: http://hints.macworld.com/article.php?story=20100123192950640
I am using preinstalled jdk for development on mac which is 1.6.0_17. With this version or copy if installed jdk i cannot run java applets in firefox or any other web browser on mac. if i update my mac with latest java which is Java for mac OS X 10.6 update 6 then i can solve java applet. But with latest java update i cannot connect to MSSQL Server which is bug in java 1.6.0_29. I would be happy to install older version of java for mac OS X but those are not available, may be i am unable to find them through google ?
My query is, how can i solve both problems ? can i install two java versions on mac and use them parallely, lets say one for eclipse and other for browser. OR is there any other way to cope both problems.
I am using current snow leopard, myEclipse, Java 1.6.0_17 and mssql server 2008.
The bug that causes the JDBC driver to fail is fixed in java 1.6.0_30 - see http://www.oracle.com/technetwork/java/javase/6u30-relnotes-1394870.html
If you can't wait for update 30 for the Mac to arrive, the bug description suggests that you may be able to avoid it by reconfiguring your the JDBC connection to use a non-SSL/TLS channel. (I've no idea how you'd do that, but it is worth investigating if you are desperate for a workaround.)
Alternatively talk to Apple or Oracle's Java support.
I have not solved it 100% but some how solution or workaround works. Which is working with two javas
Java for mac osx
OpenJDK for development
So i have updated my mac with latest java version that i can easily use java applet.Later i have downloaded and configured openjdk for development.
if you are using mac then perhaps this link would be more helpful .
[1]: http://openjdk.java.net/projects/macosx-port/
[2]: http://code.google.com/p/openjdk-osx-build/
Simply make a folder "javaVirutalMachines" under "/Library/java/" and double click on alreadly download build file of openjdk. **
anyone got java 1.6 applet working on mac os x ?
check it on gemal.dk/browserspy/java.html
I got Java using object and applet tag 1.5.0_16 (1.5.0_16-133) from Apple Inc.
and you ?
on windows and linux 1.6 working gracefully :S
On Leopard, open /Applications/Utilities/Java/Java Preferences.app, and select Java 6 as the default for your applets. This won't work, of course, if you don't have an Intel Mac running Leopard (at least, I think it requires Leopard... perhaps there's an installer for Tiger). In either event, not reliable if you need to deploy 1.6-based applets to users, but works tickety-boo for your own surfing.
There should be an installed Java JRE picker... had a similar road block, give it a peak.
It was a problem with OSX itself that didn't support 1.6 on applets now everything is updated and works on 10.6.6 at least
I wrote it here so somebody don't confuse this problem with another.