3.2. Java

It is recommended to download Java directly from Sun. The Runtime 1.3.1_06 [1] for Windows is available at http://java.sun.com/j2se/1.3/download.html . Sun supplies a common setup so that it can easily be installed.

Important: To ensure that the main batch file which starts Ant finds Java, you need to set the environment variable JAVA_HOME. Alternatively it is also possible to enter the Java installation path directly in the batch file.

To check if all settings are right, carry out the following tests in the command line:

[C:\ ]$ echo %JAVA_HOME% 
 C:\Programme\JavaSoft\jdk1.3.1_06 
 [C:\ ]$ %JAVA_HOME%\bin\java 
 Usage: java [-options] class [args...]
 (to execute a class)
 or java -jar [-options] jarfile [args...]
 (to execute a jar file)
 ... 

For defining and transforming with XSLT some additional Java libraries (JARs) are required. As these are the same for all projects, it is recommended to install them in the Lib directory of „JAVA_HOME“ (here „ C:\Programme\JavaSoft\jdk1.3.1_06\lib “. Download the libraries here .

Fussnoten

[1] You can also use the Version 1.4.1 alternatively