- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Introduction
- Part I: Introduction to Mac OS X
- Chapter 1. Mac OS X Component Architecture
- Chapter 2. Installing Mac OS X
- Chapter 3. Mac OS X Basics
- Chapter 4. The Finder: Working with Files and Applications
- Chapter 5. Running Classic Mac OS Applications
- Part II: Inside Mac OS X
- Chapter 6. Native Utilities and Applications
- Chapter 7. Internet Communications
- Chapter 8. Installing Third-Party Applications
- Part III: User-Level OS X Configuration
- Chapter 9. Network Setup
- Chapter 10. Printer and Font Management
- Chapter 11. Additional System Components
- Part IV: Introduction to BSD Applications
- Chapter 12. Introducing the BSD Subsystem
- Chapter 13. Common Unix Shell Commands: File Operations
- Part V: Advanced Command-Line Concepts
- Chapter 14. Advanced Shell Concepts and Commands
- Chapter 15. Command-Line Applications and Application Suites
- Chapter 16. Command-Line Software Installation
- Chapter 17. Troubleshooting Software Installs, and Compiling and Debugging Manually
- Chapter 18. Advanced Unix Shell Use: Configuration and Programming (Shell Scripting)
- Part VI: Server/Network Administration
- Chapter 19. X Window System Applications
- Chapter 20. Command-Line Configuration and Administration
- Chapter 21. AppleScript
- Chapter 22. Perl Scripting and SQL Connectivity
- Chapter 23. File and Resource Sharing with NetInfo
- Chapter 24. User Management and Machine Clustering
- Chapter 25. FTP Serving
- Chapter 26. Remote Access and Administration
- Chapter 27. Web Serving
- Part VII: Server Health
- Chapter 28. Web Programming
- Chapter 29. Creating a Mail Server
- Chapter 30. Accessing and Serving a Windows Network
- Chapter 31. Server Security and Advanced Network Configuration
- Chapter 32. System Maintenance
- Appendix A. Command-Line Reference
- Appendix B. Administration Reference
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:
- The Java Virtual Machine— The virtual machine acts as an entirely self- contained processing unit that can execute Java programs. The JVM reads Java bytecode (a Java application), translates it into API calls that are appropriate for the OS hosting the JVM, and then executes it.
- A Java compiler— The Java compiler creates Java byte code, given raw Java source code. This is similar to a traditional compiler, but it does not create an executable that can be run directly on the computer. Instead, it outputs a Java byte code file that can then be run on the JVM.
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.
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.
Aqua | Next Section

Account Sign In
View your cart