loading of classes that are not in the classpath

While running java with 'verbose:class' option, I noticed that some classes are being loaded which are nowhere in the classpath.

Can anyone tell me how this happens?

In Detail:

I have a webshpher MQ set up, and a weblogic server which connects to the MQ (through ForeginJMSServer).

I have a test program which looks up the Queue and ConnectionFactory from the JNDI of the weblogic.

When i run the test program in verbose mode, I see that classes starting with'com.ibm.mq' are getting loaded.

I have only weblogic.jar in the classpath of the test program. So from where are the 'com.ibm.mq' classes getting loaded from?

[678 byte] By [raeeskadera] at [2007-11-27 1:38:43]
# 1
they use classloaders. it's too large a subject to really get into here, but google "java classloaders" for more info. a very handy technique to know
georgemca at 2007-7-12 0:50:53 > top of Java-index,Java Essentials,Java Programming...
# 2
noop
calvino_inda at 2007-7-12 0:50:53 > top of Java-index,Java Essentials,Java Programming...
# 3

> they use classloaders. it's too large a subject to

> really get into here, but google "java classloaders"

> for more info. a very handy technique to know

A quick google search didnot give any satisfactory results. Still trying..

Are you saying classes can be loaded remotely too?

Bcos, in the case mentioned above, "com.ibm.mq" classes need not exist anywhere on the local machine

Message was edited by:

raeeskader

raeeskadera at 2007-7-12 0:50:53 > top of Java-index,Java Essentials,Java Programming...