With a 1.2 JDK, you can put jar files in the jre/lib/ext directory and they
will be available to the JVM just as if they were in your classpath
variable.  Javac is a Java program, so that will do it.  You need at least
servlet.jar in your classpath to compile servlets.

You can also specify jar files in your CLASSPATH variable, in which case you
must specify the full path to their location on the filesystem.

With Jikes, you can set separate JIKESPATH and CLASSPATHs.

With make, if you get the Cygwin tools for Windows, you can set the
CLASSPATH in make files so you don't have to always mess around with
environment variables for compiling different projects.

You can set any number of classpath environment variables you like, as long
as you pass them to javac with the "-classpath" option when you compile a
program, for example:

C:> set FOOPATH=".;C:\JRUN\LIB\SERVLET.JAR"

C:> echo %FOOPATH%
".;C:\JRUN\LIB\SERVLET.JAR"

C:\JRun\servlets>javac -classpath %FOOPATH% SnoopServlet.java

Scott Stirling

----- Original Message -----
From: "Xunming Liu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 25, 2000 5:59 AM
Subject: Re: Servlet


> Dear Sir:
>
> I am the beginner of Java servlets and JSP.
>
> Now I am installing the JDK1.2.2 and JavaServer Pages Development Kit in
Window
> 98.
>
> I have set the tool.jar  of JDK1.2.2 in the CLASSPATH variable.
>
> But  when I compile the  *.java, it show's I did not link to javax.
package.
>
> I don't know how to solve this problem.  Must  I install the JAVA  Web
Server in
> my computer?
>
> Any expert can help a beginner?
>
> Thanks
>
> Xunming

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to