I am trying to scan my webapplication classpath for all classes which implimenting certain interface.
My current application is working fine in stand alone version but failing in the web enviornment.
this is the portion of my code
public String[] getClassPathRoots() {
String classPath;
classPath = System.getProperty("java.class.path");
}
String[] pathElements = classPath.split(File.pathSeparator);
return pathElements;
}
i am not sure how to use java.class.path
in my application so as i should be able to get the classpath root.