Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Examining AMX Code Samples
- Next: Appendix A Deployment Descriptor Files

# Running the AMX Samples

To set up your development environment for using AMX, you must ensure that your Java classpath contains the following Java archive (JAR) files:

- `appserv-admin.jar` - The JAR file containing the AMX interfaces needed for your client. This file is found in install-dir`/lib/`. No other classes from this JAR file should be used by your program.

- `jmxri.jar` - The runtime libraries for the JMX Reference Implementation. If you are using JDK 1.5, these are already in the JDK.

- `jmxremote.jar` - The runtime libraries for the JMX Remote API. If you are using JDK 1.5, these are already in the JDK.

- `j2ee.jar` - The runtime libraries for the J2EE Platform. This file is found in install-dir`/lib/`. This JAR file is needed only if you intend to use any of the J2EE Management Statistic classes (`javax.management.j2ee.*`).

Start your Java application in a manner similar to this:

    export JAR_PATH=install-dir/lib/
    export CP="$JAR_PATH/j2ee.jar:$JAR_PATH/appserv-admin.jar"
    java -cp $CP com.mycompany.MyClientMain

- Previous: Examining AMX Code Samples
- Next: Appendix A Deployment Descriptor Files

- © 2010, Oracle Corporation and/or its affiliates