![]() |
You can make sure your Java-based browser's class path includes the Swing release in one of two ways:The following instructions give examples of each approach. For more information on setting the class path, see
- Set the
CLASSPATH
environment variable.- Use a browser-specific option to set your browser's class path.
CLASSPATH
.
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.
- Solaris
- To set the
CLASSPATH
environment variable, use a command like the following:Then invoke your Java-based browser as usual.setenv CLASSPATH /home/me/swing-0.2/swing.jarIf you're using the JDK Applet Viewer, then instead of specifying the
CLASSPATH
environment variable, you can use the-J
option of theappletviewer
command to specify options to the Java interpreter. For example:appletviewer -J-classpath -J.:/home/me/swing-0.2/swing.jar:/home/me/jdk1.1.2/lib/classes.zip http://java.sun.com/Series/Tutorial/post1.0/ui/swingApplet.html
- Windows 95/NT
- Sorry, no examples yet. See the above text and Setting Environment Variables for help.
![]() |