• Subject: RE: help with applets...
  • From: "Jaladi Ravi Kiran, Gurgaon" <jaladirk@xxxxxxxxxxxxxxx>
  • Date: Wed, 22 Sep 1999 10:51:53 +0530

Hope you're trying to call from the Qshell command entry display, Try to
ADD the following path in the Environment Variable and try again,hope this
should solve.

('.:/:JTOOL400/lib/jt400.zip:JTOOL400/+
 utilities:QIBM/proddata/java400/lib:com/ibm+
 /db2/jdbc/app)

where JTOOL400 is a Symbolic Link that was created at our work place.This
helps me in reducing my work, rather than entering
/QIBM/Proddata/Public/jt400 each time.

> J.Ravikiran
> HCL Technologies India Pvt Ltd
> GURGAON
> 
> 
> 
> 
 <<RE: help with applets...>> 


Hi Shahar, 
        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.

Praveen 

        BM__MailData-----Original Message----- 
From:   shahar mor [SMTP:shahar_mor@yahoo.com] 
Sent:   Tuesday, September 21, 1999 5:26 AM 
To:     JAVA400-L@midrange.com 
Subject:        Re: help with applets... 



        --- victor <vr39089@trishul.icil.co.in> 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 
> applets. 
> Problem is the program is working fine with a main 
> method but when 
> called from an applet gives 
> me an error "java.lang.NoClassDefFoundError: 
> com/ibm/as400/access/AS400" 
> while 
> 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 
> itself. 
> Any suggestions?????? 
> thanks, 
> victor 
> 
Hey victor, 

        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. 

        HTH 

        === 
Shahar mor 
consultant 
YUVAL INFORMATION SYSTEM 
YAHUD - israel 
__________________________________________________ 
Do You Yahoo!? 
Bid and sell for free at http://auctions.yahoo.com
<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: joe@zappie.net 
+--- 




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.