Q: I receive compiler errors when I try to build an Applet that uses the LiveConnect classes. Where are these classes located on Mac OS X?
A: The LiveConnect classes are in one of two possible archives, depending on the version of Java you have installed and selected as the default. For systems with J2SE 5.0 Release 4 or any later version of Java on Mac OS X, they can be found at
Mac OS X Tiger systems without J2SE 5.0 Release 4 or later, as well as Mac OS X Panther systems, store the classes in
You can add the classes to an Xcode project by dragging the appropriate jar from the Finder into your project's file list. When prompted by Xcode, copying the file to the project directory is not necessary; it only needs to be referenced.
Terminal or script-based builds can reference the classes using the
Note that explicitly referencing the appropriate jar is only necessary when building your Applet sources; the LiveConnect classes are on the runtime classpath by default on Mac OS X.
Document Revision History