Platform-Specific Details: Setting the Browser's Class Path

You can make sure your Java-based browser's class path includes the Swing release in one of two ways:

Warning: Permanently setting the CLASSPATH environment variable can lead to trouble. Instead, try to specify the class path programmatically, such as with a -classpath command-line option. Or specify it at a shell prompt, rather than saving it in a file.
The following instructions give examples of each approach. For more information on setting the class path, see CLASSPATH(in the Writing Java Programs trail).

The directory paths used in this section assume that you have installed both the JDK and Swing releases under /home/me (for Solaris) or on drive C (for Windows). You should adjust the directory paths to reflect your installation.

If you're using the JDK Applet Viewer, then instead of specifying the CLASSPATH environment variable, you can use the -J option of the appletviewer command to specify options to the Java interpreter. For example:
appletviewer -J-classpath -J.:/home/me/swing-0.3/swing.jar:/home/me/jdk1.1.3/lib/

If you choose to set the CLASSPATH environment variable, use a command like the following:

setenv CLASSPATH .:/home/me/swing-0.3/swing.jar
Then invoke your Java-based browser as usual.

Windows 95/NT
Sorry, no examples yet. See the above text and Setting Environment Variables for help.