It is not difficult at all and can be done rather quickly once you get the process down. First you need to go to the appdynamics.com website and got to ''supported environments and versions for Java'' in the documents section. Here you need to confirm that the JVM and the App Server are supported.
Then you must download the App Server zip file and extract the agent to its home directory. Once that is done you add the Java agent command to the JVM startup script.
On the AppDynamics.com documentation section, open the Java Server-Specific Setting page to find out how to call the Java Server Application agent from your server startup script. Then add the Java line command to your startup script and save the file.
All done now check to see if the AppDynamics Controller is recognizing the agent.