To use the SDK 1.2.2 version of Swing, you need to go through a rather elaborate setup process. the major steps in that process are described here.
Download
- SDK 1.2.2 -- includes both development environment and run time environment use as plugin
- Java Plugin -- run time environment used as plugin
- HTML Converter -- currently required for applets that use 1.2.2
Install
If you have a previous Java Runtime Environment for 1.2.x, uninstall it. Similarly, if you have installed the Java plugin for a previous version. After that, basic installation is conventional.
Note: the SDK 1.2.2 includes the Jave Runtime Environment used as a plugin by Web browsers; so you need not download and install a separate version.
Set Environment Variables
- CLASSPATH must include a period (.), denoting current directory. You may also need references to jaws.jar and rt.jar files.
- PATH set conventionally to bin directory.
- Note: documentation for setting environment variables supplied by Sun is not currently accurate.
Run HTMLConverter
Currently, conventional HTML files that include an applet tag that references a class file will not run, regardless of whether or not the Java Runtime Environment has been installed. An additional step is needed to convert these conventional HTML files to a form that can reference the 1.2.2 Runtime Environment is required.
A special HTMLConverter application is available as a separate download and it is run conventionally as a Java application. Once it begins execution, it presents a dialog box in which you can browse for the HTML file to be converted.
Install JRE Control Panel
The 1.2.2 Runtime Environment uses a special version of the Java Console. To install it, run the following Java application:
java -cp "%CLASSPATH%; XXX \javasoft\jre\1.2\lib\jaws.jar" sun.plugin.panel.ControlPanel
where XXX is the path to the directory in which you have installed the JRE, such as "C:\Program Files\".