Google
 

«           »

Running Xalan on JDK 1.5

Posted May 24, 2005 – 2:46 pm by Yakov Shafranovich in Programming

Recently I have noticed that my XSLT testing with Apache Xalan suddenly stopped working. A further investigation revealed that this was caused by the fact that JDK 1.5 no longer ships with Xalan, but includes XSLTC instead. Unfortunatly for me I needed to use Xalan so this is how I went about fixing this via the endorsed standards override mechanism in the JDK:

1. Download the Xalan JAR file from Apache.
2. Find your home JDK directory. In it find the lib directory.
3. Create a new lib/endorsed directory and put the Xalan JAR file there.
4. Repeat the same for the JRE directory as well (usually jdk/jre/lib).
5. Run the following command to see if everything works:

java org.apache.xalan.xslt.Process

Tags: ,

Permalink | Trackback URL | This post has

  1. One Response to “Running Xalan on JDK 1.5”

  2. followed the same staps but ..

    JAVA_HOME=C:\Program Files\Java\jdk1.5.0

    java org.apache.xalan.xslt.Process
    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/xalan/xsl
    /Process
    :-(

    By Nick on Apr 5, 2006

Post a Comment