< Zurück | Inhalt | Weiter >

Chapter 6


The IBM Developer Kit for Linux, Java 2 Technology Edition


image

This chapter introduces the IBM Java Software Development Kit. It does so mainly by pointing out how completely the kit mimics the Sun Java Software Development Kit covered in Chapter 5. Some time is spent on the minor differences and some installation issues.

image



6.1 WHAT YOU WILL LEARN


• The small number of important differences between the IBM and Sun Java Software Development Kits.

• How to put more than one version of Java on the same development machine and how to switch between them painlessly.


167


6.2 USE LINUX FEATURES TO MAKE MULTIPLE JAVA SDKS PLAY NICELY TOGETHER


We did not spend much time discussing the installation of Java on your Linux system in previous chapter. In fact, we did not discuss it at all. This is because the installation instructions that come with the SDK are more than adequate if you wish only to install a single Java SDK. But what if you want to install, say, both the Sun Java SDK and the IBM Java SDK? Then things get a bit more interesting.

We’re going to review the concept of filesystem links, and how they work on Linux. While it may seem odd to discuss them here, we’ll be using links to switch gracefully between different Java installations. Links are a powerful feature in Linux filesystems, and switching SDKs is a good application thereof. If you’re already familiar with links, skip ahead to Section 6.2.2.


 


6.2.1 Links

6.2.2 Switching Java Versions by Symlink

6.3.1 Performance

6.3.2 Differences in the Commands

6.3.3 IBM Classes