Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Couldn't compile the servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Couldn Watch "Couldn New topic

Couldn't compile the servlets

Ronyn Woods

Joined: May 16, 2001
Posts: 27
I use Jdk1.2.2, and copy the servlet.jar to jdk1.2.2\lib,
and then set the classpath,
c:\>set classpath=.;c:\jdk1.2.2\lib,
then, i couldn't compile the servlets,
Plz tell me howto, and thank for your help
vik nuckchady

Joined: Apr 25, 2001
Posts: 25
why do you have a , after the set classpath statement ?
Ronyn Woods

Joined: May 16, 2001
Posts: 27
It's typing error.
I just enter:
c:\>set classpath=.;c:\jdk1.2.2\lib
Bhanu manne

Joined: Apr 02, 2001
Posts: 8
If i am not wrong you should set the class path pointing to the jar file not just to the directory.
so set classpath as classpath=c:\jdk1.2.2\lib\servlet.jar
you set it up to the directory in case of a package.
Hope it works
Ronyn Woods

Joined: May 16, 2001
Posts: 27
Oh! yes
It should point to the servlet.jar file clearly.
subject: Couldn't compile the servlets
Similar Threads
please help me with this error
How to configure JSDK2.0
Class path setting problem in J2ee server