9

I am using Intellij Idea for development. I want to add log monitoring using

https://stackify.com/prefix/

and I am following their guide on setting javaagent from the below link

http://support.stackify.com/hc/en-us/articles/211497443-How-to-Enable-Java-Profiling-with-Prefix

intellij vm options

When I run the project , I am getting the following error

javaagent error

IIntellij is reading the path till the first space only.

Kindly help me solve the issue. Thanks

4

2 回答 2

24

您应该将文件路径放在双引号中:

-javaagent:"C:\Program Files (x86)\StackifyPrefix\java\lib\stackify-java-sprn.jar"
于 2017-07-15T06:42:53.770 回答
9

bowmore 解释的双引号方法对我不起作用,必须采用斜线方式:

-javaagent:C:/Program Files (x86)/StackifyPrefix/java/lib/stackify-java-sprn.jar
于 2018-08-20T08:30:27.487 回答