classunloadevent doesn't seem to occur
Hi,
I am having trouble with the classunloadevent. basically it doesn't seem to occur. I have created it in the typical way (see below) but it doesn't seem to occur. Could someone explain why.
private String[] excludes = {"java.*", "javax.*", "sun.*",
"com.sun.*"};
ClassUnloadRequest cur = erm.createClassUnloadRequest();
for (int i=0;i<excludes.length;++i){
cur.addClassExclusionFilter(excludes);
}
cur.enable();
I look for the event in another class file like below
}else if(inEvent instanceof ClassUnloadEvent){
System.out.println("picked it up\t");
>

