|
Ashish Kulkarni wrote: > > Hi, > I am trying to call a java program from RPGLE, but i > get method not found error > javax/xml/parsers/SAXParserFactory > > I have jdk1.4.1 installed on AS400 and the program > works fine when i call it from QSH, i have set > java.version=1.4 in SystemDefault.properties in > QIBM/UserData/Java400 folder on AS400 > But i guess when i call the program from RPG it is > setting to JDK version 1.3 which is also present on > this machine > What else setting do i have to modify to look in to > make it work > Ashish > Ashish, if you are calling from RPG using the EXTPROC(*JAVA) support, you are using JNI. JNI doesn't use the java.version property from SystemDefault.properties (although as far as I know, it uses all the other properties.) To get around this, apply an ILE RPG runtime PTF V5R1 PTF SI10069 V5R2 PTF SI10101 and set an environment variable: ===> ADDENVVAR QIBM_RPG_JAVA_PROPERTIES VALUE('-Djava.version=1.4;') Don't forget the terminating semicolon. The coverletter of the PTF explains more about this environment variable.
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.