I have problem in accessing VM arguments in My program. I am writing an annotation processor in which i want to access some VM arguments. I am Using NETBeans IDE. I create the jar file of the annotation processor and then use it in another project which has java files with the annotations.
Now in my annotation processor project, In IDE i set the VM arguments as follows
-Dname="hello from VM"
and in the process() function of the annotation processor when i try to access it
String property = System.getProperty("name");
System.out.println(property);
It prints null. Can we access these VM arguments during compile time As both the annotation processor and the annotated class run in the same VM ? Thanks