Set the JAVA_HOME variable to the JDK/JRE Home folder where your JDK or JRE is installed.
For example: set JAVA_HOME=C:\java\jdk1.6.0.
Set the SJSAS_HOME variable to the SJSAS Home folder where your Sun Java System Application Server is installed.
For example: set SJSAS_HOME=C:\CAPS6\SJSAS.
Set the CAPS_MANAGEMENT_HOME variable to the folder where you saved the Java CAPS Management and Monitoring API Java archive file locally.
For example: set CAPS_MANAGEMENT_HOME=C:\scripting\engines\common.
Set the ENGINE_HOME variable to your Scripting Engine Home folder where your scripting engine is installed.
For example: set ENGINE_HOME=C:\scripting\engines\groovy\groovy-1.1-beta-2.
You are now ready to run the scripting samples.