0

I am running my project from eclipse and I simply add a JVM argument like this:

-javaagent:path to my ho hw ho folder/openjpa-2.3.0.jar 

now i am running my code from the server ,and I do have the pom there, i would like to ask you if it is possible to add that javaagent from the pom

What i have tried

: i added a <jvmSettings> in the pom, so basically i did this:

 <jvmSettings> <systemProperties> <systemProperty>javaagent=path to my ho hw ho folder/openjpa-2.3.0.jar</systemProperty> </systemProperties> </jvmSettings> 

my question is: is that correct? do i need to add the - before javaagent?

1

1 Answer 1

-2

You could use environment variable to pass in Java argument -javaagent as shown here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.