This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Calling a dll file problem in webapplication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Calling a dll file problem in webapplication" Watch "Calling a dll file problem in webapplication" New topic
Author

Calling a dll file problem in webapplication

aresh babu
Ranch Hand

Joined: Aug 31, 2008
Posts: 65
HI all,

We generated the dll file without any compilation error and this dll is working fine when we are using with stand alone java application.

But if we try to use in web application it is not giving any exception while it is loading.

When we try to call a particular method on the dll from a servlet it is showing the message Servlet Threw An Exception. We are not able to call a method which are there in the dll file. What may be the problem??? We are using JBOSS server.

Please help me

Thanks & Regards
Aresh Babu
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The run.bat file (or run.conf.bat, you never said which version of JBoss AS) sets the java.library.path. You will probably have to edit the run script to include the directory that contains you DLL in java.library.path.


JBoss In Action
 
 
subject: Calling a dll file problem in webapplication
 
Similar Threads
Calling a dll file
jsp - jar - dll
open a .exe from server(DLL problem, urgent)
open a .exe in java (DLL Problem)
Calling a dll file problem