The Sun Java Runtime Environment and the Sun JDK Java compiler use the CLASSPATH environment variable to locate classes referenced
within Java code. A CLASSPATH variable provides the link between Java code and the actual file path or URL location of the
classes being referenced. For example,
import java.io.* allows all the classes in the java.io package to be referenced without a fully qualified name. Only the class name is required
in the following Java code to use classes from the java.io package. The CLASSPATH environment variable on the system where
the Java class declaration is to be compiled must include the location of the Java directory, the root of the java.io package.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|