Use of collections. The Linux version is Debian GNU / Linux, JDK can be downloaded from the Sun Site, such as J2SDK1.4.2_05, unzipped to / usr / local, switch the current directory to the root directory, edit the .bashrc file under the root directory, add the following statement : Export java_home = / usr / local / j2sdk1.4.2_05 and export path = $ PATH: $ java_home / bin. Here, JDK has been configured to run Java in any directory to test whether the configuration is correct.