Calling program that uses Java Native method from JSP

Posted on 2003-03-05
Medium Priority
Last Modified: 2013-11-23
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?

Question by:toyota
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 35

Accepted Solution

girionis earned 1000 total points
ID: 8071850
 First of all put all the jsp related files under your web app fodler.

  For the dll you only need the .dll file and not the rest. Now I am not sure where you should have it but I *think* it will work if you have it on the same folder as your JSP page. Not 100% sure though.

  Why don't you try it and let us know?

Expert Comment

ID: 8071933
I think that the DLL should be in a directory included in the PATH
LVL 35

Expert Comment

ID: 8072251
 Yes probably.. So it would work if the file were under the winnt/system folder.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question