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



Hi Mike,

public static au.com.eigansvar.web.webservices.userdb.client.User
getUserByUsername(java.lang.String);
  throws java/rmi/RemoteException
 Signature:
(Ljava/lang/String;)Lau/com/eigansvar/web/webservices/userdb/client/User
;

Thank you for that part. Can you please post the 2nd-level text of the RNX0301 error that you mentioned earlier?

(You posted the 2nd-level text of the CEE9901 -- but that doesn't say anything except "an RNX0301 occurred", and therefore doesn't provide any information that I didn't already have. I need the 2nd-level text of the RNX0301)


I saw that Shannon O'Donnell commented that she'd never been able to get
Java to work unless she physically set the CLASSPATH in the RPG program.
I'm not quite sure what she meant. Does it mean she issues a CHGENVVAR
command from within the RPG?

Shannon O'Donnell is a man.:)

Yes, you can use CHGENVVAR from an RPG program, but like all CL commands it has to be executed via the QCMDEXC (or similar) API. You can also use the putenv() API which is considerably simpler.

Having said that, I don't recommend setting your classpath in this manner. Remember: You can't set the CLASSPATH on a per-program basis! You have to set it before the JVM is started, and the JVM can only be started once per job (and thereafter shared by all programs that need to use Java). Consequently, your CLASSPATH should be set to everything you'll need before invoking the first program that uses Java.


Once again, the class is able to be found when I run a test harness
referencing it in the QSH environment.

That's one reason why I seriously doubt that the error is related to your classpath. Unfortunately, I won't be able to tell you more until I see the 2nd-level text for the RNX0301 error.


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.