"Alvin, lau" wrote:

> thank you,
>
> one more question, I always put "classes.zip" into my classpath, but I
> cannot find one with jdk2, why? And What are dt.jar and tools.jar?
>

JDK 1.2 still supports a CLASSPATH if you want to use one, but it is not
required.  The documentation package download for JDK 1.2 explains quite well
how classpath setting in the new world works -- check out (from the
documentation download)

    [JavaHome]/docs/tooldocs/solaris/classpath.html (Unix based examples)

or

    [JavaHome]/docs/tooldocs/win32/classpath.html (Windows based examples).

As with JDK 1.1, you can use a CLASSPATH environment variable, or the
-classpath command line option.  JDK 1.2 includes some enhancements to reduce
the number of cases where you need to worry about it, though.

Because CLASSPATH related questions are *by far* the most common issue for
people installing Java based software, JDK 1.2 includes it's own classes by
default, and there is an extensions mechanism that lets you simply plug JAR
files in to an extensions directory (in your scenario, it would be
/usr/jdk/lib/ext) and they become part of the class path, with no extra effort
required.  For example, you could repackage the JSDK 2.0 classes into a JAR
file in this directory, and never have to worry about them being accessible or
not.


>
> I installed: jdk1.2 in /usr/jdk, jdsk2.0 in /usr/JSDK2.0, and my own files
> on /usr/myclasses
>
> Can you tell me what my classpath should look like?
>

Let's assume you do the repackaging trick for the JSDK classes (putting them in
a JAR file in the extensions directory).  Then, your classpath would only need
to contain your user classes directory (/usr/myclasses) on it.  If, on the
other hand, you packaged up your own classes and put them in the extensions
directory, you would not need a class path at all.

>
> thank a lot, alvin
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to