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



Jon,

You need to use the full package name for the class you are trying to call. If you open the jar file with WinZip (or you can rename it to a .zip file and Windows XP can look at it), you'll see a directory structure. The full class name has all of those directories in it but separated with a period instead of a slash.

Matt

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon S
Sent: Thursday, February 07, 2008 4:07 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Calling Java from RPG


All,

I this is my first attempt at calling Java from RPG and I am about to pull my hair out.
I have a .jar for from a third party vendor that I am trying to communicate with named CGProCLI.jar.
I tried my own directory at first but the .jar currently resides in the QIBM/UserData/Java400/ext directory and it's my understanding that I don't even need to set the class path to there as it's a default, but I set the classpath anyway.
I have spent quite some time reading and looking at various examples on the web and even created my own java program on the 400 and compiled it in above directory and got it to work. Every time I run this I get the dreaded java.lang.NoClassDefFoundError error. I have included my prototype, RPG, the java code from the third party and my errors. I am sure this is something really silly on my part, but any help would be appreciated.

Thanks, Jon




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.