× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I believe the javax.mail.Session class is in mailapi.jar.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jerry Hensley
Sent: Tuesday, May 23, 2006 2:19 PM
To: java400-l@xxxxxxxxxxxx
Subject: Class Not Found

I have a java class defined to send email from the I5 (AS/400, ISeries,
etc...). 

The java class is being called from within a batch RPGIV program in a
*NEW activation group.

This RPG program is new but I have other programs which do the same call
to this java class.

In this instance the JVM cannot not load the SESSION class from the
mail.jar (Class not Found exception).

 

Now I know you're going to say the classpath is not set correctly, BUT
it is. The RPG program utilizes the "putenv" API to set the classpath.

 

D Set_Classpath   PR            10i 0 ExtProc('putenv')             

D  p_PtrtoPath                    *   value options(*string)        

 

w_ReturnCode = Set_ClassPath                                       

           ('CLASSPATH=/Java:/JAVA/mail.jar:/JAVA/activation.jar');

 

 When users submit this as part of a larger process we get the class not
found error. And as I mentioned, this java class is being called by
other 

processes without a problem. Also,  I can submit the job and it will
execute without a problem. 

 

I'm at a loss as to what may be the cause of this problem. I've looked
at permissions and everything seems to be okay. Any help would be
appreciated.

 

Thanks,

Jerry Hensley

Farm Credit Bank of Texas 

            

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.