Try to locate 'servlet.jar' and you can copy it into '$JAVA_HOME/lib' directory.
Then you could add $JAVA_HOME/lib/servlet.jar to your classpath, provided you have defined JAVA_HOME variable. export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/servlet.jar Samy Rengasamy. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: Re: IBM's Dev Kit for Linux 31-bit zSeries (S/390) version 1.3.1... where's javax.*? Thanks for responding, I too installed the JDK via RPM. I added "/opt/IBMJava2-s390-131/bin:/opt/IBMJava2-s390-131/jre/bin" to PATH. The doc says you don't need CLASSPATH unless: 1. You require a different library, such as one you develop. 2. You change the location of the bin and lib directories such that they no longer have the same common parent directory. 3. You plan to develop or run applications using different runtime environments on the same system. 4. You are running TurboLinux. At this point i don't meet any of these criteria. Compiling/running with no classpath works fine with import java.*, but not javax.*. In an attempt to get it working my classpath has ballooned to: ".:/opt/IBMJava2-s390-131/jre/lib:/usr/share/java:/var/tomcat4/server/lib:/v ar/tomcat4/common/lib" but the javax.* still does not work (though the java.* still does). I get: package javax does not exist rpm -V IBMJava2-SDK doesn't turn up anything. Do you still have the IBMJava2-SDK-1.3.1-1.0.s390.rpm? Is the md5sum: c8da349097d737afd08720e785d36ea8 IBMJava2-SDK-1.3.1-1.0.s390.rpm? Thanks, Daniel [EMAIL PROTECTED] wrote: >On Thu, 13 Jun 2002 [EMAIL PROTECTED] wrote: > >We are using the IBM JDK's. Also for tomcat (version 4). But we got no >problems with it. It works fine. >My feeling that there is something wrong with on of your paths (PATH, >CLASSPATH,...) > >Also, we installed it using the RPM. I don't know how you did it. > >Kind regards, >Tim Verhoeven > > >>So is nobody using IBM's JDK on s390? Are those with tomcat using >>blackdown instead? >> >>The servlets work when called by tomcat, but fail when I try to execute >>them directly with the java binary (/opt/IBMJava2-s390-131/bin/java) >>because it can't find the javax classes. And I can't compile with javac >>for the same reason. >> >>~ Daniel >> >>[EMAIL PROTECTED] wrote: >> >>>I had downloaded IBM's Dev Kit for Linux 31-bit zSeries (S/390) version >>>1.3.1 from http://www6.software.ibm.com/dl/dklx130/dklx130-p >>> >>>HelloWorldExample.java:8: package javax.servlet does not exist >>>import javax.servlet.*; >>>^ >>>HelloWorldExample.java:9: package javax.servlet.http does not exist >>>import javax.servlet.http.*; >>>^ >>> >>>In fact, it can't find anything from javax.*. README.SDK.HTML alludes >>>to a javax, and I don't in this case meet any of the four conditions >>>where a classpath is required. So I tried it without, and also am up to >>>CLASSPATH=.:/usr/share/java:/var/tomcat4/server/lib:/opt/IBMJava2-s390-13 1/jre/lib:/var/tomcat4/common/lib >>> >>>and still javac fails to compile anything requiring the javax class >>>tree (including Tomcat's example servlets). >>> >>>Also, a java HelloWorldExample of tomcat's precompiled java bytecode >>>(with the classpath listed above) gets an exception thrown >>>Exception in thread "main" java.lang.NoClassDefFoundError: >>>javax/servlet/http/HttpServlet >>> >>>Going through tomcat 4.0.3 runs the servlets (came precompiled) without >>>error. >>>Also, java and javac finds the java.* classes okay, just no the javax.* >>>classes. Any ideas what I'm missing? >>>~ Daniel >>> >>> >>>$ which java >>>/opt/IBMJava2-s390-131/bin/java >>>$ which javac >>>/opt/IBMJava2-s390-131/bin/javac >>> >>>$ ls /usr/share/java >>>ant-1.4.1.jar bsf.jar servlet-2.3-4.0.3.jar >>>xalanservlet.jar >>>ant.jar jakarta-regexp-1.2.jar servlet-2.3.jar >>>xerces-1.4.4.jar >>>antlr-2.7.1.jar jakarta-regexp.jar xalan-2.1.0.jar >>>xerces.jar >>>antlr.jar jaxp_parser.jar xalanj1compat.jar >>>xercesSamples-1.4.4.jar >>>ant-optional-1.4.1.jar junit-3.7.jar xalan.jar >>>xercesSamples.jar >>>ant-optional.jar junit.jar xalansamples.jar >>>xsltc.jar >>>$ ls /var/tomcat4/server/lib >>>catalina.jar servlets-invoker.jar tomcat-ajp.jar >>>jakarta-regexp-1.2.jar servlets-manager.jar tomcat-util.jar >>>servlets-cgi.renametojar servlets-snoop.jar warp.jar >>>servlets-common.jar servlets-ssi.renametojar >>>servlets-default.jar servlets-webdav.jar >>>$ ls /opt/IBMJava2-s390-131/jre/lib/*.jar >>>/opt/IBMJava2-s390-131/jre/lib/i18n.jar >>>/opt/IBMJava2-s390-131/jre/lib/rt.jar >>> > >-- >=========================================================================== >Tim Verhoeven > Linux & Open Source Specialist >GSM : 0496 / 693 453 + e-business solutions >Email : [EMAIL PROTECTED] + consulting >URL : www.sin.khk.be/~dj/ + Server consolidation >=========================================================================== >
