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?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.
Your password has been sent to:firstname.lastname@example.org
To follow this tag...
Thanks! We'll email you when relevant content is added and updated.
Share this item with your network: