Unpacking the Sun Package

Here we're using J2SDK v.1.3 and the self-extracting binary package (j2sdk-1_3_0-linux.bin). In a shell, as the root, or using the su command, copy or move the downloaded file to the directory of your choice—again we're using user/local/lib, so the J2SE subdirectory is /user/local/lib/jdk.1.x.

Make the file executable with the command

chmod a+x j2sdk-1_3_0-linux.bin

Execute it with the command

./j2sdk-1_3_0-linux.bin

This launches a script and displays the license agreement from Sun (which you must read and accept). The script unpacks and installs the SDK.

Get Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.