Jay Kandy
Posts: 77
Nickname: jay
Registered: Mar, 2002
|
|
Re: finding classpath visible to classloader
|
Posted: Apr 19, 2002 3:42 PM
|
|
Like Kishori said, getResource() gives the location (in other words classpath) to the resource passed as parameter.
Normally, (the keyword being normally) JVMs load classes in a platform-dependent manner. Most use the environment variable of the underlying platform: CLASSPATH. This maps to the system property java.class.path. So, to get the classpath used by a ClassLoader use that system property.
|
|