By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,470 Members | 1,907 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,470 IT Pros & Developers. It's quick & easy.

Problem Loading DLL

P: n/a
Greetings,

I have a DLL which I am loading using Systm.loadLibrary(). I have put
the DLL in a directory that is include in the PATH environment
variable but I still get Unsatisfied Link Error. I know the DLL
works because when I put it in the Windows System directory, the DLL
is found and loaded.

Here is the environment.

Windows 2000
The DLL is called by Java Class which is called by JSP running under
Tomcat 4.1.24. The DLL is in a directory under Tomcat\webapps
directory that I created and include in the PATH environment variable.

Every things works when DLL is in Windows System directory. I even
verified that the java.library.path is the same as the PATH
environment variable.

Could it have something to do with Tomcat?
Thanks,

Michael
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mj********@yahoo.com (Michael) wrote in message news:<1a**************************@posting.google. com>...
Greetings,

I have a DLL which I am loading using Systm.loadLibrary(). I have put
the DLL in a directory that is include in the PATH environment
variable but I still get Unsatisfied Link Error. I know the DLL
works because when I put it in the Windows System directory, the DLL
is found and loaded.

Here is the environment.

Windows 2000
The DLL is called by Java Class which is called by JSP running under
Tomcat 4.1.24. The DLL is in a directory under Tomcat\webapps
directory that I created and include in the PATH environment variable.

Every things works when DLL is in Windows System directory. I even
verified that the java.library.path is the same as the PATH
environment variable.

Could it have something to do with Tomcat?
Thanks,

Michael

I hold full confidence that many out there know more about this
sequence than I do. I will, however, suggest investigating
registering the DLL with RegSrv32 on the machine on which Tomcat is
running. I had similar experiences using the Java-COM bridge, JACOB,
and seemed to trace many several problems to skipping this step.

Regards.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.