I too had the same problem. I had tried all these ways except for the Servlets. But still I couldn't. Also I don't think V4R2 supports Servlets.
From: shahar mor [SMTP:email@example.com]
Sent: Tuesday, September 21, 1999 5:26 AM
Subject: Re: help with applets...
--- victor <firstname.lastname@example.org> wrote:
> hi all,
> I am working on an V4R2 and relatively new to java.
> I am trying to access data from the as400 and
> display them using
> Problem is the program is working fine with a main
> method but when
> called from an applet gives
> me an error "java.lang.NoClassDefFoundError:
> connecting to the database. It gives this error
> while using any of the
> AS400 classes.
> I have the toolbox installed on my pc and running
> the applet on my pc
> Any suggestions??????
This is a classpath issue. here is an explanation for
using the toolbox from applet:
For Java applets, you have the following choices:
Use support built into browsers to access a file on
the HTML server. The codebase parameter of the applet
HTML tag tells the browser where to look for classes.
The Toolbox classes are in the jt400.jar file. Update
the applet tag to point to jt400.jar.
Use servlets. A servlet is a Java program running on a
server called by an HTML page running on a client (a
servlet is a more powerful, Java version of CGI-bin
programs). The servlet will use the Toolbox classes to
access AS/400 data instead of an applet running on the
client. The servlet gets program parameters from the
client, uses the Toolbox classes to access data on the
AS/400, and then returns results to the client in an
updated HTML page. The Toolbox classes are used only
by the server so they can be on the server's local
drive or on a network which the server can access.
Many browsers can access the client's CLASSPATH
environment variable or have their own CLASSPATH
variable. As in Java applications, the CLASSPATH
variable can be updated to point to the Toolbox zip
file which is copied to the workstation or is on a
network the workstation can access.
YUVAL INFORMATION SYSTEM
YAHUD - israel
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
| 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: email@example.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.