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



There's nothing you have to code for "throws exception". This doesn't affect the Java method signature.

Can you post the exact error message that you're receiving?


On 4/30/2017 7:41 PM, tim 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




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.