Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Java Application Support

Radar #3428173

Help books in bundled Java applications are not registered with the Help viewer

Description:

In prior versions of Java, a Java application could bundle a help book in the application and it would be automatically registered with the Help viewer. Starting in Java 1.4.1, this functionality was lost.

Resolution:

Java applications with bundled help books are now automatically registered with the help viewer if the Java property "apple.awt.useSystemHelp" is set to "true". If you were using the workaround provided in the HelpHook code sample, it will continue to work, but is no longer needed as of Mac OS X 10.5.

Radar #3597977

The application menu in Java applications was not localized for many languages

Description:

Java is now localized into all of Mac OS X's standard languages.

Resolution:

This problem is now fixed in Mac OS X 10.5.

Radar #4471286

Bundled Java applications cannot request a 64-bit Java VM

Description:

Bundled Java applications use a 32-bit Java VM by default, even on 64-bit-capable hardware.

Resolution:

Java applications can specify which architecture will be used for the application. To do this, add an array in the Java dictionary of the application's Info.plist named "JVMArchs". Each element in the array indicates the preferred hardware architectures you want your application to use. If the first choice is not available, the second will be used, and so on. You may also specify per-architecture settings for the Java dictionary keys "VMOptions" and "ClassPath". Use a key of "VMOptions.<architecture>" to specify Java VM options that should only be used for the specified architecture. Use a key of "ClassPath.<architecture>" to specify a class path that should be used for the specified architecture. The per-architechture values are set in addition to those specified in the non-architecture-specific key, and will override the non-architecture-specific values, if applicable.

Radar #4581633

JavaApplicationStub is not backward compatible

Description:

Old stubs are ppc-only, and do not work on 10.3.9 when QT7.1 is installed. New stubs do not work on older OS versions.

Resolution:

The current JavaApplicationStub works on ppc and intel and is backward compatible to 10.1.5. Note that for code developed in Xcode 3.0 to run on Java 1.3.1 references to com.apple.eawt must be removed and the property apple.laf.useScreenMenuBar will not work since both were introduced in Java 1.4. Furthermore, Java application bundles created by Xcode 3.0 are missing the PkgInfo file and appear as directories in Finder on 10.1.5. Copying a PkgInfo file from a bundle created by Jar Bundler remedies this.



< Previous PageNext Page > Hide TOC


Last updated: 2007-10-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice