I need to port a java desktop app for mac os-x.
The app will be launched via JNLP.
Is the Java runtime environment pre-installed on MAC-OSX ?
In general. Java 5 or Java 6 was preinstalled on Mac OS X up to 10.6, but this ceased in 10.7.
Besides, a recent Mac OSX update uninstalls the version of Java 6 plugin previously supported by Apple. Apple have never supported Java 7.
https://blogs.oracle.com/thejavatutorials/entry/apple_s_java_mac_os
You (or your users) need to download and install Java 7 for the Mac from Oracle. But #Andrew Thompson's comment (see above) offers a good way to smooth that "speed bump".
Related
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.
If I install SoyLatte on MAC 10.5.8, On command line I can see the version as 1.6.0
However the Safari Browser extension still shows the old java version.
In Java Preference also I am not able to see Java 6 version.
How do I update browsers to run under java 6.
Any help will be appreciable.
SoyLatte is not a full replacement for Java on OS X - just a proof of concept - and the real port of OpenJDK is targetting OS X 10.6 and up.
For OS X 10.5 you are best off with the official Apple offerings which according to http://support.apple.com/kb/HT4739?viewlocale=da_DK includes Java 6.
OSX 10.5 originally only included Java 1.4 and 5 OSX Java 1.5 release notes to get later versions you need to install the updates the latest provide 1.6.0_26 and 1.5.0_30,albeit 1.6 is for Intel 64 bit machines only.
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.
Is it possible to install the latest JDK on Mac OS 10.5? What are the best options, considering that the Apple-supplied version is 1.5?
Update: I am trying to install JDeveloper 11, which requires JDK 6.
If you have an Intel Mac with a Core 2 Duo, go to Applications/Java and run Java Preferences.app
You'll be able to select "Java SE 6" as your default java version (version 5 is still the shipping default on the OS for compatibility, I guess).
Depending on your hardware the latest version Apple supplies actually is Java 6, but it is not activated as the default version to use. Apple supplies Java 6 only for 64-bit Intel Macs (i.e. not for original Core Duo Macs). For older Macs, you could try the OpenJDK port of Java 6 for Mac (SoyLatte).
Apple provides Java 6 (1.6) for Leopard (OS X 10.5) as an update, however only the 64-bit version. So, if your Mac is not a 64-bit Intel, then you won't have Java 6 on Leopard.
If you do have a 64-bit Intel, then ensure that you install the latest OS updates, especially the Java ones to make sure you get Java 1.6. Also, you still need to set Java 6 as the default VM in your Java Preferences, as it defaults to Java 1.5.
Currently, the easiest solution if you have a 32-bit Intel processor is to upgrade to Snow Leopard, which includes 32-bit and 64-bit versions of Java 6.
OS X does have Java 6 after Update 1. The version number you are referring to is the version of Java 6. Do you receive any errors while installing JDeveloper 11?
It's just a software update. Here's a blog post that describes it.
JDeveloper like netbeans and eclipse provide a configuration file(usually a .conf) where you can update a jdkhome attribute addresing the path of your jdk6 installation, as mentioned before you can get it from OpenJDK port of Java 6 for Mac.
You also need to be aware that:
if you have an alias "CurrentJDK" and if that alias is "broken" then you must delete it to install a new JDK.
Deleting that "alias" will solver troubles.
It is. Check here: Apple support