Trang binary distribution

Copyright © 2002 Thai Open Source Software Center Ltd

See the file copying.txt for copying permission.

Version 2002-04-30

The file trang.jar contains Trang packaged for use with a Java runtime. It depends on jing.jar, which must be put in the same directory as trang.jar.

The most straightforward way to run this is to install version 1.4 of the Java Runtime Environment (JRE), which can be downloaded here.

Once you have installed JRE 1.4, you can run Trang by using the command:

java -jar trang.jar inFile outFile

It is also possible to run Trang using versions 1.2 or 1.3 or the Java runtime, but to do so you must first install an implementation of Java API for XML Processing (JAXP) 1.1 as an extension. One suitable implementation is Crimson, which can be downloaded here. The crimson.jar file must be copied into the lib/ext subdirectory of the Java home directory.

If for some reason you do not wish to install JAXP 1.1 as an extension, then you can instead use a command such as:

java -cp trang.jar;jing.jar;crimson.jar com.thaiopensource.relaxng.output.Driver inFile outFile

For more information about the features and usage of Trang, see this document.