|
OK. Thanks Mark and David. Making those changes and setting the CLASSPATH
as a *JOB level environement variable just before I called the java class
worked. Finds it now anyway.
I have another question now:
When calling the autCard method in my class, which now looks like this:
public String autCard(String inputParms) {
and the RPG prototype for that looks like this:
D PFProAut PR 2000a
D EXTPROC(*JAVA:'PFProJava3':'autCard')
D stringParm Like(string)
(where "string" is an object reference to: "D string S O
CLASS(*JAVA:'java.lang.String')
then calling the method looks like:
Response = PFProAut(obj_ref:string)
I get an error:
...NoSuchMethodError: autCard when calling method "autCard" with signature
"(Ljava.lang.String;) [B" in class PFProJava3.
I looked at the signatures for this class using javap -s PFProJava3
and I see the signature for autCard looks like:
public java.lang.String autCard(java.lang.String);
/* (Ljava/lang/String;)Ljava/lang/String; */
So....it looks like the difference is the "type" of string? maybe? I
don't know what the "[B" signature is there when I make the call.
Thank you in advance for your assistance and patience in educating me on
this!
Shannon O'Donnell
----- Original Message -----
From: "David Morris" <David.Morris@xxxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Wednesday, July 09, 2003 3:01 PM
Subject: Re: Calling Java from RPG - CLASSPATH Problem?
> Shannon,
>
> In addition to Marks comment, your autCard method expects an array but
> you
> are passing a string.
>
> David Morris
>
> >>> sodonnell@xxxxxxxxxxxxxxx 7/9/2003 12:54:22 PM >>>
>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.