*
The moose likes Servlets and the fly likes Duh in Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Duh in Servlets" Watch "Duh in Servlets" New topic
Author

Duh in Servlets

Namit Gaur
Greenhorn

Joined: Oct 10, 2000
Posts: 8
Hi All,
Where do i put servlet.jar file in order to compile servlets? in windows environment. I am using JDK1.3
Thanks
Namit
------------------
Raja Shekhar
Ranch Hand

Joined: Apr 02, 2001
Posts: 49
hi
Make sure that the dirrectory is in class path
which has got servlet.jsr file
Raja Shekhar B
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
Hai Namit,
I can give you a simple solution just copy your jar file and put it to C:\jdk1.3\jre\lib directory and try it

I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
Originally posted by Anoop Krishnan:
Hai Namit,
I can give you a simple solution just copy your jar file and put it to [JAVA_HOME]\jre\lib directory and try it

Namit Gaur
Greenhorn

Joined: Oct 10, 2000
Posts: 8
Hi Anoop,
I tried that but it doesnt seem to work. Everyone says you have to put the jar file in the classpath. How do i find what is the classpath?
Thanks,
Namit
Sophia Oscario
Greenhorn

Joined: May 14, 2001
Posts: 22
In Windows 98 you can edit file autoexec.bat (in C:/WINDOWS )
just edit the line SET CLASSPATH = blablabla
for example the actual line is :
SET CLASSPATH=C:\Programs\test
then just edit it become
SET CLASSPATH=C:\Programs\test;\path\to\servlet.jar
Just simply add your path to servlet.jar to the CLASSPATH.
Then don't forget to execute the autoexec.bat after you edit it to get the effect.
If you use Win NT/Win 2000
just go to the Control Panel -> System -> Environment
then do the same thing like above ...
If there's no CLASSPATH there, you can add it by your self.
if you want to make sure whether the CLASSPATH has been set, you can go to the command prompt and type "set | more"
Find the word CLASSPATH and make sure there's nothing wrong with it.
So, good luck !!


------------------
** Science belongs to the world **


** Science belongs to the world **
Namit Gaur
Greenhorn

Joined: Oct 10, 2000
Posts: 8
Hi,
Thanks Sophia for the tip. I was able to compile servlet. But, I was able to do it through command prompt only.
Is it possible to compile servlets through free visual IDEs available like Jbuilder Foundation, or visual cafe?? I was not successful in compiling the servlet through JBuilder Foundation. It doesnt recognize the import javax.servlet line.
Thanks
Namit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Duh in Servlets