Receiving error message when calling Java method from RPG

56,495 pts.
Tags:
AS/400
Java
RPG
I've been having a lot of trouble with a "ClassNotFoundError" when I'm trying to call a Java method from RPG. This has been happening with several other users as well. It seems that it could be a problem with CLASSPATH or access to JAR files. I've give a better description: We have a RPG program that's calling a Java method in a JAR file. The CLASSPATH has the right JARs included. It's working fine (for me) when running the program through iSeries Session Manager. But it's showing this error message for other users:
RPG Procedure received Java Exception java.lang.NoClassDefFoundError: com.ibm.as400.access.AS400 when calling method "invokeApiPgm" with signature "([Ljava.lang.String;Ljava.lang.String;I[Ljava.lang.String;)Z" in class "callIceApi.CallIceApiPgm".
Are we missing something? Is it because the AS/400 class is available as public?
ASKED: January 2, 2014  4:30 PM
UPDATED: January 3, 2014  1:10 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    How do we know that the CLASSPATH is correct? It's not enough to assure us that it's correct. It's necessary to demonstrate that it's correct. We have to assume that you are mistaken when you only tell us something is correct. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following