Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

JSP calling a c function

  • 28-03-2004 07:09PM
    #1
    Closed Accounts Posts: 143 ✭✭


    Yo,

    i need to find out how to call a c function from a jsp page. i can call the c function no bother using jni code by writing a normal java class but i have a problem trying to do the same using tomcat. i dont know where to put the dll file and the header files. i dont know much about c so any help would be much appreciated. i know it can be done its just that there is very little helpful info on the web about it.
    cheers


Comments

  • Registered Users, Registered Users 2 Posts: 347 ✭✭Static


    It's been a long time since I touched JNI, but I think the java.library.path is the one you need to add your libraries to. Edit the catalina.sh (if unix/linux) or catalina.bat (if windows) in the tomcat 'bin' directory, and look for the calls to java and add -Djava.library.path arguments.

    This is off the top of my head, so I can't promise success :)


Advertisement