On Windows-NT I do the following for setting classpath. c:\set CLASSPATH=%CLASSPATH%;C:\JSDK2.0\LIB\; You can do the same thing on a Linux shell. Something like this. prompt>$CLASSPATH=$CLASSPATH;/PATH/TO/JSDK2.0/LIB; This will set the classpath in that shell, and you need not have to include the -classpath for compiling your java souurce codes. pradip Gaurav Kishore wrote: > Hello, > I am using Apache JServ on Linux and > I am trying to compile a servlet (a simple HelloWorldServlet) using the > following command - > > javac -classpath /path/to/jsdk2/lib/jsdk.jar HelloWorldServlet.java > > I am getting the error - "java/lang/Object.class not found" and couple > of more errors. > What does it mean and what is the solution? > > Also, how do I setup classpath, so that I don't have to type it > everytime I compile a servlet. > > Kindly help. > Thanks in advance. > Gaurav > > ___________________________________________________________________________ > 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
begin: vcard fn: Pradip Kumar Pandey n: Pandey;Pradip Kumar org: Computer Associates T C G Software Ltd. adr: 43, Shanti Palli;;Rash Behari ;E.M.Bypass Connector;Calcutta;700042;India email;internet: [EMAIL PROTECTED] title: Software Engineer. tel;work: 91-33-4426347 to 50 ex 321 tel;fax: na tel;home: na x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard
