Java on future Mac OS + eawt (original) (raw)
Mike Swingler swingler at apple.com
Thu Jan 19 16:46:12 PST 2012
- Previous message: Code Review Request: 7126993: JCK test api/java_util/jar/Jarfile jarFile0129 failing [macosx]
- Next message: Java on future Mac OS + eawt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 19, 2012, at 2:59 PM, Scott Kovatch wrote:
On Jan 19, 2012, at 2:25 PM, Paul Taylor wrote:
On 19/01/2012 17:11, Scott Kovatch wrote:
(Resending to all) On Jan 19, 2012, at 3:42 AM, Fabrizio Giudici wrote:
On Thu, 19 Jan 2012 12:31:08 +0100, Brian Davies <brian.davies at anu.edu.au> wrote:
Mile
1) I'm confused. I already have it (Java for Mac OS X 10.7 Update 1) installed in a Lion system, and it's Java 1.6 not Java 1.7. My App (bundles) work fine with it, including drag and drop. Also, I already know my apps work under Java 1.7 on Windows, I was referring to the fact that the Oracle site says that drag and drop is not yet implemented in Java 1.7 on the Mac port which is in progress. I'm confused too. To reset this point, can please somebody recap which Java 7 distributions for Mac OS X are available and where they can be downloaded from? Thanks. Java 7 builds for Mac OS X are available now from http://jdk7.java.net/macportpreview/ The plan is for the Mac build to become just another supported OS platform, and you'll get it from http://www.java.com/en/download/manual.jsp like all other OS's Scott Ive downloaded the preview from the site and followed the instruction, mounting the dmg and copying into Virtual Library I then tried running my application, but it still uses the Apple Java 1.6 So then changed my info.plist to JVMVersion 1.7 Now it complains 'No compatible version of Java 1.7 available', but when I click on 'Open Java Preferences' Java SE 7 Developer Preview is listed. I on a macbookpro running Mac OSX 10.7.2, and run the Apple 64bit Java VM no problem. Apple's launching infrastructure does not and will not work with Oracle's JDK 7. Apps in Java 7 will need to re-bundle the JRE included in the JDK with the launcher stub from the OpenJDK. Unfortunately we don't have documentation on how to do that yet, but the first step is checking out the source (see https://wikis.oracle.com/display/OpenJDK/Mac+OS+X+Port) and finding the Xcode project at jdk/src/macosx//bundle/JavaAppLauncher/JavaAppLauncher.xcodeproj. Duplicate the project file, add your JARs and resources, and build. When you installed that JDK bundle you got a bundle that works on the command line and nothing else. Oracle will be releasing an end-user runtime (JRE) that will handle applets, Web Start and JARs.
Not to completely crowd-source this, anyone has step-by-step instructions for how to build the new JavaAppLauncher and repackage your app, please put them here: <https://wikis.oracle.com/display/OpenJDK/How+to+embed+a+.jre+bundle+in+your+Mac+app>.
Also, this discussion is more appropriate on the macosx-port-dev at openjdk.java.net list, since it is an OpenJDK technology, and more Oracle people are on that who can help.
Thanks, Mike Swingler Apple Inc.
- Previous message: Code Review Request: 7126993: JCK test api/java_util/jar/Jarfile jarFile0129 failing [macosx]
- Next message: Java on future Mac OS + eawt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]