Link to home
Start Free TrialLog in
Avatar of toyota
toyota

asked on

Calling program that uses Java Native method from JSP

I have created  a simple program that uses Java Native Method to run C program. After the compilation I end up with lots of files such .class, .c, .obj, .h and .dll.

I can run the program from command line like c:\java myprogram.

However, I want to use JSP to get the results. My question is: Do I need all the files generated? Where do I put the files on the Java app server? Or do I just place .dll file in the same directory as JSP on the application server and instantiate the class in JSP?


ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Venci75
Venci75

I think that the DLL should be in a directory included in the PATH
 Yes probably.. So it would work if the file were under the winnt/system folder.