<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [opencms-dev] servlet code compiling</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Dear Mayur,</FONT>
</P>
<P><FONT SIZE=2>I think this is not the right list for your question - but shortly:</FONT>
<BR><FONT SIZE=2>Add all *.jar files you can find under tomcat installation directory to your compilers classpath!</FONT>
</P>
<P><FONT SIZE=2>javac -classpath /usr/local/tomcat/lib/servlet.jar:/usr/local/lib/mail.jar:/usr/local/tomcat/lib/activation.jar:/etc/etc.jar:/etc/etc.jar file2compile.java (all in 1 line) </FONT></P>
<P><FONT SIZE=2>The most important class files are the files named like servlet???.jar</FONT>
</P>
<P><FONT SIZE=2>If you use an IDE like IntelliJ or Eclipse or JBuilder (etc) it is much easier to do this!</FONT>
</P>
<P><FONT SIZE=2>So long,</FONT>
</P>
<P><FONT SIZE=2>Nico</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Mayur Solanki [<A HREF="mailto:mayur@inflibnet.ac.in">mailto:mayur@inflibnet.ac.in</A>] </FONT>
<BR><FONT SIZE=2>Sent: Freitag, 27. September 2002 14:23</FONT>
<BR><FONT SIZE=2>To: opencms-dev@www.opencms.org</FONT>
<BR><FONT SIZE=2>Subject: [opencms-dev] servlet code compiling</FONT>
</P>
<P><FONT SIZE=2>Hello,</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> What will do for running java servlet code?</FONT>
<BR><FONT SIZE=2> Examples in Tomcat Documentation is satisfied run,</FONT>
<BR><FONT SIZE=2> but can not recompile it source code.</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> Suppoese, I am going in <A HREF="http://localhost:8080/examples/servlets/index.html" TARGET="_blank">http://localhost:8080/examples/servlets/index.html</A></FONT>
<BR><FONT SIZE=2> Many inbuilt examples found there and I can also run it.</FONT>
<BR><FONT SIZE=2> But when I am going to recompile it, gives Errors like....</FONT>
<BR><FONT SIZE=2> " javax.servlet.* package doesn't exist. "</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> Where i am wrong? Please help me. Thanks.</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>Mayur.</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
</BODY>
</HTML>