Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set javaagent in intellij idea VM Options?

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

like image 299
hybrid Avatar asked Jul 15 '17 06:07

hybrid


2 Answers

You should put the file path in double quotes :

-javaagent:"C:\Program Files (x86)\StackifyPrefix\java\lib\stackify-java-sprn.jar"
like image 124
bowmore Avatar answered Sep 18 '22 19:09

bowmore


Double quotes method explained by bowmore didn't work for me, had to go the slash way:

-javaagent:C:/Program Files (x86)/StackifyPrefix/java/lib/stackify-java-sprn.jar
like image 38
SteveVg Avatar answered Sep 17 '22 19:09

SteveVg