Public-Berechtigung der *.class Files habe ich auf "use" gesetzt -> funkt leider auch nicht!

Wir haben V5.2 installiert

Wie kann ich den festellen welche Java-Gruppen PTF es sein sollte?


Hab da mal die Beschreibung, hoffe hier könnt vieleicht damit was anfangen!

Java E-mail Util. offers the ability for RPG pgm. to send e-mail by calling java method on AS/400.

The Utility consists of following programs:

RPGLE: JAVAMAIL - It calls java method to send e-mail.
CLP: STRMAIL - It changes the 'dir' to '/JAVAUTIL/JAVAMAIL/', and adds 'CLASSPATH' for
Java classes.
CLSMAIL - It changes the 'dir' back to '/' and remove the 'CLASSPATH'.

Java Classes:
JavaMail.class – It has a method can be called from RPG to send e-mail.
JavaMailwithAttachment.class – It has method can be called from RPG to send e-mail with
attachment file.


The code example for RPGLE program to call JAVAMAIL:
************************************************** ***************
* Program: CJAVAMAIL
* Date : 02/25/2002
************************************************** ***************
H DftActGrp(*NO) ActGrp(*CALLER)

D from S 50
D to S 50
D replyTo S 50
D subject S 50
D filename S 100
D text S 9999
D rtnCode S 3
D rtnText S 50

C Eval from = 'karlg@ri-net.com'
C Eval to = 'jamesz@ri-net.com'
C Eval replyTo = 'bobc@ri-net.com'
C Eval subject = 'JavaMail Attachment'
C Eval text = 'james test send file '
C Eval filename= '/home/test/dataacj2.pdf'

C call 'JAVAMAIL'
C parm from
C parm to
C parm replyTo
C parm subject
C parm text
C parm filename
C PARM rtnCode
C PARM rtnText

C Eval *InLr = *On


To send e-mail, in calling program do following:
1. CALL STRMAIL.
2. CALL JAVAMAIL(can call it as many times as the user need)
3. CALL CLSMAIL.

Files to support JavaMail utility:

The following files are on RAD in folder '/JavaUtil/JavaMail/' to support the JavaMail.

Java Jar files:
activation.jar
imap.jar
mail.jar
mailapi.jar
pop3.jar
smtp.jar

JavaMail property file:
JavaMail.properties