Live data from Hacker News

JRE & JDK now available to OS X developers

oracle.com

11–20 of 33 posts

Re: JRE & JDK now available to OS X developers

#11

What would I gain over Java6? I don't use java for anything, except, I have a couple of apps on my machine that make use of it.

Java 7 is faster in some cases. Also, some Java apps will require Java 7 — but obviously that doesn't apply to you if you aren't planning on using any new Java apps and those don't force an upgrade.

Re: JRE & JDK now available to OS X developers

#12
Note that the JRE installs to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin only, so it cannot easily be used by Java desktop applications and appears to be for applets only.

It also installs a System Preferences plugin that opens up a custom Swing-based settings panel that looks awful on a Retina MBP. It tries to replicate the look of the standard Apple Java Preferences app, but is confusing because it doesn't affect the system Java that you'd see when doing 'which java' from the command line.

The installer script then sets the permissions on /Library/Internet Plug-Ins/JavaAppletPlugin.plugin to root:wheel. This is the same as the bundled Java installations.

Re: JRE & JDK now available to OS X developers

#13

What would I gain over Java6? I don't use java for anything, except, I have a couple of apps on my machine that make use of it.

Security enhancements, among other things.

Though, of course, you know better than clicking 'yes' on a random trojan installer, so maybe you don't need the security updates.

Re: JRE & JDK now available to OS X developers

#16

does this require lion like the earlier beta installers did?

ANSWER - requires Lion.

Earlier betas indicated 'works on Snow Leopard', though I'm not sure how they tested it, because it never installed. Later site pages just said 'tested on Lion' or something like that.

There was a google code site that offered built versions with installers that worked on Snow Leopard (supposedly) but I could never get those to install right either.

Am I destined to have to upgrade to Lion/ML just to get Java7. ???

Re: JRE & JDK now available to OS X developers

#17
For those who want to know, here is what is inside the .pkg files within the DMG. If you want to have a custom install directory in a non OSX specific directory structure then you can extract the packages and it should work appropriately.

JDK: https://gist.github.com/3353638

JRE: https://gist.github.com/3353662

Re: JRE & JDK now available to OS X developers

#18
post #12

Note that the JRE installs to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin only, so it cannot easily be used by Java desktop applications and appears to be for applets only. It also installs a System Preferences plugin that opens up a custom Swing-based settings panel that looks awful on a Retina MBP. It tries to replicate the look of the standard Apple Java Preferences app, but is confusing because it doesn't…

This does seem weird to me, as you said the java executable by default gets installed to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java. Whereas the java executable within the jdk package gets installed to /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/bin/java.

Re: JRE & JDK now available to OS X developers

#19

What would I gain over Java6? I don't use java for anything, except, I have a couple of apps on my machine that make use of it.

Java 7 has lots of enhancements for dynamic languages and some new things like NIO2 for asynchronous services (vert.x, for example, requires java 7)
Post reply on HN