cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

java agent configuration

I'm running below command, however I'm getting error.  Help on this is appreciated.

 

C:\Users\Administrator>java -Xbootclasspath/a::"C:\Program Files\Java\jdk1.8.0_181\lib\tools.jar" -jar C:\appdynamic_agent\ver4.4.3.23530\javaagent.jar 2128

 

java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1008)

Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMac

hine

        at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1033)

Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1008)

 

1 REPLY 1

Radhika.Puthiyetath
AppDynamics Team (Retired)

Hi @Sheshagiri.Krishnappa,

 

Have you checked the Java Supported Environments and Administer the Java Agent docs?

 

Please verify that you are using the right Java environment.