×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hello,

I'm trying to code my method call in all free but I'm getting the error NoSuchMethodError when the program tries to call it. I know it's not a class path error and that it does exist because I have codded it in fixed format and it calls the method just fine. This is what I have, could anyone help me out with what I have defined incorrectly please?

Java Code:
public class SignatureGenerator3
{
public static String[] genSignedvalues(String PString1, String PString2, String PString3, String PString4)
{
...
}
}

Fixed format:
d genSig PR O EXTPROC(*JAVA:
d 'SignatureGenerator3':
d 'genSignedvalues')
d STATIC
d CLASS(*JAVA:'java.lang.String')
d dim(2)
d PassString1 O CLASS(*JAVA:'java.lang.String')
d Const
d PassString2 O CLASS(*JAVA:'java.lang.String')
d Const
d PassString3 O CLASS(*JAVA:'java.lang.String')
d Const
d PassString4 O CLASS(*JAVA:'java.lang.String')
d Const

Free Format:
Dcl-Pr genSig Like(Values) Static
EXTPROC(*Java:'SignatureGenerator3':'genSignedvalues');
PassString1 Object(*Java:'jav.lang.String') CONST;
PassString2 Object(*Java:'jav.lang.String') CONST;
PassString3 Object(*Java:'jav.lang.String') CONST;
PassString4 Object(*Java:'jav.lang.String') CONST;
END-PR;

Dcl-S values Object(*Java:'java.lang.String') Dim(2);

Thanks,
Robert.


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