Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
A simple program like:
import java.util.*; public class HelloWorld { public static void main(String args[]) { System.out.println("Hello java"); } }leads only into the error message:
Can't find class HelloWorld
CLASSPATH
was set by Netscape. This is necessary for the JAVA Plug In to be
found by Netscape: CLASSPATH=/usr/X11R6/lib/netscape/java_301
CLASSPATH
at all.
CLASSPATH
allows finding the
JAVA classes. The development environment's classes are located in
path /usr/lib/java/lib/classes.zip
(check the path if
necessary).
Additionally, the current directory should be in CLASSPATH
.
Here a small shell script fulfills this purpose:
#! /bin/sh export CLASSPATH=/usr/lib/java/lib/classes.zip:./*: /bin/bashThe script changes the CLASSPATH variable, so I can work with the appletviewer and have a normal development environment. When I leave the shell with
exit
I again have Netscape's configuration.
Keywords: JAVA, JDK, JWS, CLASSPATH, NETSCAPE, CAN'T FIND CLASS
Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-java4
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch