Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNI: Registering a DLL into the Windows Registry when its loaded

843829Feb 25 2006 — edited Feb 27 2006
I have created a Java application which load a DLL (created in VC++) and interacts with it.
This DLL makes an entry in the windows registry (WR) which attached itwith the IE window.
When use
regsvr32
everything works fine its entry is made into the WR.
However when I load the same DLL in Java
 System.load(DLL_PATH)
the DLL load but its entry is not made into the WR.

I have checked it that the DLL main function actually gets called, even then the entry is not being made into the WR.
and yes the DLL is a self registering one.

Anyone having any idea, how to make that self registering DLL, make its entry into the WR when its loaded in JVM.

Any ideas/wild guesses are welcomed.

Thanks in advance.
Pradeep Agnihotri
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2006
Added on Feb 25 2006
9 comments
467 views