|
Thanks for the response. I actually came up with a solution and explanation already and hadn't posted it to the list yet. Apparently, from what I have read, this is an issue with Java version 1.4.x. They included xalan version 2.4.something in rt.jar, along with some other apis. You can override the versions included by passing -Djava.endorsed.dirs=/some/path/to/your/jars to the JVM when you call it. It is the "Endorsed Standards Override Mechanism." http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html I had did not run into this problem running my code with Java 1.5 on my PC, so from what I can see they may have rid java of this "issue" with 1.5. I am calling my Java from RPG so I set the QIBM_RPG_JAVA_PROPERTIES environment variable in my job to include the above switch before I called my code and it worked like a charm. It also turns out, that the problem I was having last week with the "No suitable driver found" issue (a different thread) may have been solved by getting it to load the correct version of xalan as well... but I had already coded around that problem so I am not certain. -Dan Feather -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Clapham, Paul Sent: Thursday, July 07, 2005 4:23 PM To: Java Programming on and around the iSeries / AS400 Subject: RE: (no subject) And the Xalan classes that you want to run have the same names as the ones already in rt.jar, correct? If so then the only thing I can think of is to put the new Xalan jar file into the boot classpath. Here's a Sun article that (among other things) mentions how to do that: http://java.sun.com/developer/technicalArticles/Programming/GettingStart ed/ and here's a link from this list a couple of years ago that mentions it: http://archive.midrange.com/java400-l/200310/msg00006.html PC2 -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan Feather Sent: July 7, 2005 07:09 To: Java Programming on and around the iSeries / AS400 Subject: (no subject) Hello everyone, I am trying to use Xalan on the iSeries. Specifically, the latest and greatest version (2.6.0). However, when I run my programs on my iSeries it is loading the version included in rt.jar in: /QIBM/ProdData/OS400/Java400/jdk/lib/rt.jar, even when I include the jar file for the newer version in the classpath. Is there some way to force it to use my version rather than that found in rt.jar, or am I out of luck? If this has been answered before, I apologize and would appreciate a link to the thread. Thanks for your help!
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.