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

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.