1.JDK Installation and configuration:
(1) Default installation Jak, path such as: C:\jdk1.5.0_11
JDK Download Address http://java.sun.com/javase/downloads/index.jsp
(2) Configure JDK:
Open My Computer Right-click Properties-Advanced-Environment Variables page,
In the system variable, add variable java_home, variable value: C:\jdk1.5.0_11
In the system variable, add variable classpath, variable value:.; %java_home%\lib
In the system variable, increase before the variable path variable value:%java_home%\bin;
2. Download Staf:
Http://sourceforge.net/project/downloading.php?groupname=staf&filename=STAF330-setup-win32.exe&use_ Mirror=osdn
3. Download Stax:
Http://sourceforge.net/project/downloading.php?groupname=staf&filename=STAXV333.zip&use_mirror=osdn
4. Default installation STAF, installation path such as: C:\STAF
5.STAX Installation configuration:
(1) Installation Stax:
Create a new folder in the C:\STAF directory services, extract Stax to the Services folder, directory path such as: C:\STAF\services\stax;
(2) Configure Stax:
Add the following configuration information to the C:/STAF/BIN/STAF.CFG configuration file
SERVICE STAX LIBRARY jstaf EXECUTE {staf/config/stafroot}/services/stax/stax.jar \
OPTION j2=-xmx384m
SERVICE EVENT LIBRARY Jstaf EXECUTE \
{Staf/config/stafroot}/services/stax/stafevent.jar
SET Maxqueuesize 10000
(3) Check whether the Stax is installed successfully:
Run the STAF Local Service list on the command line to see if there are any records in the results, indicating that the installation was successful:
STAX Jstaf C:/staf/services/stax/stax.jar
7. Run STAF: Start Menu--"Start STAF 3.3.0"
8 Running Stax:
On the command line, enter: Java-jar C:/staf/services/stax/staxmon.jar
Source: http://www.cnblogs.com/sky_online/archive/2008/08/06/1261697.html