Deploying the jacob.dll

5.8k views Asked by At

There is a question about deploy the jacob.dll. As we know jacob.dll is default set to put under the path C:\Windows\System32, is there any possible to change the default path like put it under another location?

The reason for asking this is because I create an Applet with jacob and a 3rd party dll, trying to provide it for client use. But the problem is, if they need to access the web page embedded with this Applet, they must put these native libraries into the default location(C:\Windows\System32) in the first place.I know if provide an .exe for client to install can solve this problem, but instead I thought is there any possible to change the location like put these native libraries on server(?) and make Applet to call these native libraries?

1

There are 1 answers

5
Lonzak On

The solution is quite easy:

You can provide the jacob.dll (and your 3rd party dll for that matter) as part of your applet - so there is no local installation in any directory necessary. Jacob itself provides a quite nice applet example for that:

Download the jacob source from here and have a look at the applet example:

jacob-1.XX\samples\com\jacob\samples\applet 

There is a readme.txt file exactly describing what you must do - it even supplies an example applet calling some native activeX component to demonstrate its feasibility. It doesn't get easier than that...

Update:

To deploy an applet using an jnlp file have a look here.