'How can i know the manner specified in the java.lang.instrument specification

I am loading an agent and im getting AgentLoadException, at the method specifies that

Throws: AgentLoadException – If the agent does not exist, or cannot be started in the manner specified in the java.lang.instrument specification. i do not think it is because my agent does not exists so how can i get the manners of the instrumentation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source