|
Richard, CLASSPATH, CLASSPATH, CLASSPATH. It's seems it's always classpath "voodoo" when programs can't find import classes. Make sure the jsdk.jar is in your classpath when you compile servlets. jskd.jar is usually in the: /QIBM/ProdData/IBMWebAS/... etc. etc. directory somewhere. Also keep an eye out for jst.jar and include this one too. At least I think that's it. I'm sure some other readers will have some insight on this one. I hope this helps at all. HAPPY NEW YEAR TO ALL ON THE LIST!! Tom H-C At 12:31 AM 12/31/1999 -0500, you wrote: >Well I seem to have WebSphere up and I can pull up the servlet examples and >they run, including the servlets that access the database. My next question >is how can I compile the my own "HeloWorld" servlet. There is an example in >the setup instructions for "WebSphere 1.1" (which is what we have). So, I >created the sample HelloWorld servlet and set up my "classpath" using the >"ADDENVVAR" command like it said and then I tried to compile the servlet. >Of course it did not like the import of "javax.servlet.*" or >"javax.servlet.http.*", which I expected. I was trying to compile this on >the AS/400 in the Qshell. I was able to compile a simple >"System.out.println" program and run it in Qshell and it worked. So I guess >the question is do I need to install the "servlet" API on my AS/400 somehow, >or do I need to import from some place other than "javax" (I tried to import >from "com.sun.java", but it did not work), or do I need to install the >"servlet" api on my PC somehow and compile the program there first and then >copy the class to the as/400? > >I also noticed that all the example servlet sources that I could find on the >AS/400 had the "import jaxax......." in them, so I am real confused. > >Any help would be appreciated. I am running V4R4M0 of the O/S, and >WebSphere 1.1. > >Thanks, >Richard Dean > >+--- >| This is the JAVA/400 Mailing List! >| To submit a new message, send your mail to JAVA400-L@midrange.com. >| To subscribe to this list send email to JAVA400-L-SUB@midrange.com. >| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. >| Questions should be directed to the list owner: joe@zappie.net >+--- > > +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.