×
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.
On 2011/3/8 10:11 AM, mikemonger@xxxxxxx wrote:
Ok, I'm officially at my wits end. I've written a java class which
accepts an array of string objects and returns a string. Here is the
prototype in the RPG program:
Mike, I'm a bit confused about what you said here. You said that the
java class returns a string. Normally, I'd just think you meant to say
"java method", but since you used the name "main" for the method, I'm
wondering if you're hoping that you can also use the RUNJVA command to
call this main method and get the value back.
I tried creating a Java class with a main method like yours, and it
created the Java class ok, and I was able to call the main method with
your prototype after I added the STATIC keyword in RPG (and changed the
name of the class to my class's name).
But I wasn't able to use RUNJVA to call the class method. I had to
change the method to have the usual signature before I could use RUNJVA
to call the class.
public static void main(String args[])
So I'm thinking that your Java method will be easier to understand if
you use the name "resendOrder" for that method, instead of using the
name "main", since using the name "main" could cause confusion.
As an Amazon Associate we earn from qualifying purchases.