|
The following servlet tries to create an AS400 object using the AS400 class in jt400.zip file. The output of this servlet is as follows: ---------browser output ------------------------------- Create AS400 Object... Error: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400 Are we done? I verified the following: 1. The CLASSPATH on the as400 V4R5 is ‘/Qibm/ProDdata/Http/Public/jt400/lib/jt400.zip’, (WRKENVVAR LEVEL(*SYS)). 2. The Use System Classpath in Setup Java Engine is default to ‘Yes’ (WAS Server Manager) 3. the jt400.zip file is in Qibm/ProDdata/Http/Public/jt400/lib. What else should be done to make this servlet find jt400.zip? TIA Bruce import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import com.ibm.as400.access.*; public class CallRPG1 extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<html> <head> <title> Title </title> </head> <body>"); out.println("Create AS400 Object... <br> "); try { AS400 as400 = new AS400(); } catch (Exception e) { out.println("Error: " + e + "<br>"); } out.println("Are we done? "); out.println("</body> </html>"); out.close(); } } +--- | 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.