Patent ID: 8332835

Claim:
A method for locating a class in a J2EE java virtual machine (JVM) environment, comprising: determining with a computer system executing the JVM environment a package associated with a class name of said class; obtaining available code-sources associated with said package from a code-source index that relates code-sources to packages for a plurality of class loaders in a class loader tree in said JVM environment, wherein said code-source index comprises at least a first parameter referencing a plurality of class loaders associated with a class loader tree, a second parameter referencing a plurality of packages associated with a plurality of classes that are capable of being loaded by said plurality of class loaders, and a third parameter referencing a plurality of code-sources, and a mapper for mapping a package associated with a class to one or more associated code sources that potentially can access said class in said plurality of class loaders; determining with the computer system a set of code-sources from said available code-sources that are able to access said class; and determining with the computer system a set of class loaders associated with said subset of code-sources and based on the class loader tree.