|
Shannon O'Donnell wrote:
I've always had to physically set the classpath in the RPG program itself, right at the top as one of the first thing it does, in order for the JVM to find the class. If you try to set it at the environment level outside of the program, it just never seems to work right.
I never set the classpath in the RPG program. If you set it in each RPG program, you are eventually going to run into a problem where the JVM already exists, and the classpath being used doesn't include the directories for your current RPG program. You can't change the classpath once the JVM has been started. Maybe you were setting your environment variable in your job, and then submitting your RPG program. If you do that, then you have to make sure you use SBMJOB CPYENVVAR(*YES).
As an Amazon Associate we earn from qualifying purchases.
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.