That was very helpful Thank you! So if you can tell me one more thing I will have understood this for now I THINK! How does the compiler find the javax.servlet.* classes in the servlet.jar file... WHERE do you tell the compiler to find the class files or jar for that matter. Thank again! ----- Original Message ----- From: "Markus Spath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 12:11 PM Subject: Re: classpath/servlet compilation error: javax package not found!
> Leon, > > Leon Vermaak wrote: > > > I am at a loss as to what I must modify in this file? > > I managed to compile the program with javac -classpath "C:\Program > > Files\Apache ...\common\lib\servlet.jar" > > What I don't understand is why I put import javax.servlet.*; > > if there is nothing on my drive called javax? > > > copy servlet.jar in some convenient directory, go there, open a shell and type: > jar xvf servlet.jar > some directories should expand, there you will find the classes. > > packaging various .class files in a .jar file just helps keeping overview and > consistency (not always ;) i hope you don't run in any sealing violation...)). > > see also: http://java.sun.com/docs/books/tutorial/java/interpack/packages.html > > > > If Java is supposedly such a serious programing language and they pretend on > > making it work? They aught to make easy for new commers to the language to > > follow a details explination on how to do set the path to the respective > > libraries that one is suppose to use to write one's servlets! > > I appologize if this is simply my ignorace, but The least they can do is try > > to include a page for newbies that will explain things in IDIOT PROOF TERMS. > > > see: http://java.sun.com/docs/books/tutorial/servlets/index.html > > hth, > markus > > ___________________________________________________________________________ > 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 > ___________________________________________________________________________ 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
