What is an Info.plist Java Dictionary Key?
Organization of This Document
See Also
This document discusses the settings for the Info.plist Java Dictionary for Java 1.4 developers. Although the information is specific to Java 1.4.2, most of the information is also applicable for Java 1.4.1 (Java 1.4.1 is provided by default in Mac OS X version 10.3 and is an optional installation in Mac OS X version 10.2). Note that Java 1.4.2 is an optional installation for Mac OS X version 10.3. You customers can download it through Mac OS X’s Software Update mechanism.
The Info.plist file is an XML property list file in a native Mac OS X application bundle. It defines certain attributes of the application for use by the operating system. The Info.plist file for a Java application wrapped as a Mac OS X application bundle contains a Java dictionary. This dictionary is just a subset of the Info.plist file that begins with:
<key>Java</key> |
<dict> |
and ends with
</dict> |
The Java dictionary allows you to set certain Java-specific attributes of your Mac OS X application.
Inside this Java dictionary you can have key and string combinations or key and dictionary combinations as illustrated in Listing 1-1.
Listing I-1 Sample Info.plist Java dictionary
<key>Java</key> |
<dict> |
<key>JVMVersion</key> |
<string>1.4*</string> |
<key>MainClass</key> |
<string>com.yourCompanyName.YourApplication</string> |
<key>Properties</key> |
<dict> |
<key>apple.laf.useScreenMenuBar</key> |
<string>true</string> |
<key>apple.awt.showGrowBox</key> |
<string>true</string> |
</dict> |
<key>VMOptions</key> |
<string>-Xmx512m</string> |
</dict> |
Note that each key tag has a corresponding string or dict tag. Each dict tag surrounds other key/string or key/dict combinations.
“Available Variables” provides information on variables that are valid within the context of the Java dictionary of the Info.plist file.
“Keys and Values” lists the keys and their valid settings for the Java dictionary of the Info.plist file.
For more information on application property lists in general, see Mac OS X Developer Release Notes: Information Property List and Inside Mac OS X: System Overview.
© 2004 Apple Computer, Inc. All Rights Reserved. (Last updated: 2004-10-05)