The default VM arguments in Eclipse are: -javaagent

I need to set the following argument as default VM arguments in Eclipse

-javaagent /Developer/aspectj-1.6/aspectjweaver.jar 

When I add a line and run my code, it gives me an error:

 Unrecognized option: -javaagent Could not create the Java virtual machine. 

How to fix it?

+7
java eclipse
source share
1 answer

You will need a colon ( : between -javaagent and the JAR, not a space. For example:

 -javaagent:/Developer/aspectj-1.6/aspectjweaver.jar 
+14
source share

All Articles