----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- I have a java servlet program and it calls a native method. In that native method (in C), i've to call another C program (getdata.exe) to get some values. I've no problem to run my java program with this JNI in UNIX prompt, that means I can get the values from getdata.exe, and then return values to my java program. But when I run this servlet by a browser (Netscape 4.04), there's no returned value from getdata.exe. I've set the classpath for my .class file, and set the LD_LIBRARY_PATH for my shared library file. In the implementation of my native method, I use popen("/fullpath/getdata.exe", "r") to read the stdin from getdata.exe Do I have to put my getedata.exe in a specific location or I have to set some env? If this is the case, where should I set it? I am using solaris 2.6, Apache 1.3.3, Apache Jserv 1.0 __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
