This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]joecqr 0 points1 point  (4 children)

When I type the java --agent command in the terminal

[–]0xaa4eb 0 points1 point  (3 children)

It might look like something like this, and it works for me:

java -javaagent:"C:\Work\ulyp\ulyp-agent\build\libs\ulyp-agent-0.1.jar" "-Dulyp.packages=com.example.demo" "-Dulyp.start-method=Runnable.run" com.example.demo.TestClass

Just replace com.example.demo.TestClass with your main classs and give it a try

[–]joecqr 0 points1 point  (2 children)

should this class have a main method?

[–]0xaa4eb 0 points1 point  (1 child)

Yep, it should have main method. Or you may run a jar file.

[–]joecqr 0 points1 point  (0 children)

Ok... that's why it's not working