|
Group, I did find an APAR that mentions: 5. When the class for an ILE RPG Java native method is in a package, the class name must be qualified. For example: extproc(*java:'MyPkg.MyClass':'mymeth') When Java tries to call this native method, the call fails because the native method cannot be found. Hopefully I can download and apply it tonight and it fixes the problem. Not sure where I report PDF manual problems to. Also, I don't have software support so I can't report the other errors I have encountered, I will try to document them and make that information available with the code when I post it. David Morris >>> David.Morris@plumcreek.com 12/17/01 06:56AM >>> Group, I have not been able to locate an example that works showing how to call a non-static Java method. I even tried the example from the RPG manual. I get RNX0301, some weird things about this are that the method name is truncated to four positions (it is defined as 100 in the message definition) and the signature is blank. The example in the manual is flat out wrong. Here is the prototype (note that there is not java.lang.BigDecimal, it should be java.math.BigDecimal. D add PR O EXTPROC(*JAVA: D 'java.lang.BigDecimal': D 'add') D CLASS(*JAVA:'java.math.BigDecimal') D bd1 O CLASS(*JAVA:'java.math.BigDecimal') CONST Anyway, I corrected the example and still get: Cause . . . . . : RPG procedure TSTJDOM in program TSTJDOM/DMORRIS received Java exception "java.lang.NoSuchMethodError: add" when calling method "add" with signature "" in class "java.math.BigDecimal".
As an Amazon Associate we earn from qualifying purchases.
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.