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?