
Signature
Regards,
Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
thanks for reply.
I found that jvm.dll does not depend upon java.dll. So if jvm.dll is
the entry point, how java.dll is loaded. Is it loaded dynamically?
thanks,
Naresh
Roland - 15 Jun 2005 12:43 GMT
> thanks for reply.
>
[quoted text clipped - 3 lines]
> thanks,
> Naresh
Guess so. java.dll also contains the native code for loading, finding
and defining Java classes (from .class files), quite important for
accessing Java's system classes and classes you compiled yourself. I
think java.dll gets loaded during the startup of the JVM.

Signature
Regards,
Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
Gordon Beaton - 15 Jun 2005 13:06 GMT
> I found that jvm.dll does not depend upon java.dll. So if jvm.dll is
> the entry point, how java.dll is loaded. Is it loaded dynamically?
On Linux, libjava.so depends on libjvm.so, but the converse is not
true:
$ readelf -d libjava.so
Dynamic segment at offset 0x208a8 contains 25 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libjvm.so]
[...]
When the library contains such information, ld.so will load libjvm.so
automatically when a process loads libjava.so.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e