× 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.



One approach would be to use RDi (download the trial version if you don't have a copy) and use it to prototype the method for you.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Apr 30, 2017, at 8:41 PM, tim <iseriesstuff@xxxxxxxxx> wrote:

i did. just cant find example with "throws exception". I dont know if that signature would be different.


On 4/29/2017 1:13 PM, Richard Schoen wrote:
Google is your friend:

Search: rpg prototype java string array

http://www.mysamplecode.com/2011/07/rpgle-calling-java-main-method-iseries.html


Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

-----Original Message-----

message: 1
date: Sat, 29 Apr 2017 08:40:50 -0400
from: tim <iseriesstuff@xxxxxxxxx>
subject: prototype java call question

I have the following java program code and like to know if prototype is correct. Im getting a signature error when evoking.

Java:
public class MailMerge {
public static void main(String[] args) throws Exception{


Rpg:
d javapgm PR EXTPROC(*JAVA:'MailMerge':'main')
d STATIC
D args o Class(*java:'java.lang.String')
d dim(150)

D args s o Class(*JAVA:'java.lang.String')
D dim(150)

d string pr o extproc(*java:
d 'java.lang.String':
d *CONSTRUCTOR)
D value 150a const varying



--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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-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.