Mac OS X Unleashed

Mac OS X Unleashed

By John Ray and William C. Ray

Java 2

The final programming environment included in Mac OS X is Java 2, Standard Edition v1.3. This marks the first time that the Macintosh has had a current version of Java available, and the first version of Java 2 available for any Macintosh operating system.

If you've kept up on computer technologies, chances are that you've heard of Java. Developed by Sun Microsystems and available for different operating systems, Java implements a true cross-platform "write once, run anywhere" development environment.

Java consists of two primary components:

Java also includes a component called SWING that can be used to create applications that appear as native applications within whatever operating system they are running. SWING-based Java applications look like native Windows applications when running on Windows and native OS X applications when running on OS X. Figure 1.9 shows a SWING Java application running under Mac OS X. As you can see, it takes on the appearance of a native Mac OS X application.

01fig09.jpg

Figure 1.9 Java software can be created that runs anywhere, but looks like native OS X applications.

Besides the standard Java API, Apple has also opened up the entire Cocoa API to the Java programming language. This means that programmers can access the entire advanced Cocoa functionality, including Quartz, all from within the comfortable familiarity of Java.

Since the introduction of OS X, there have been several pieces of software released or announced for the operating system that have never been available on Mac OS before. Applications such as real-time stock trading are now becoming available thanks to the robust Java 2 implementation. It's likely that the trend will continue as enterprise developers realize the potential for increasing their market across the Macintosh platform.

Share ThisShare This

Informit Network