Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82967 invoked from network); 15 May 2003 19:11:48 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 May 2003 19:11:48 -0000 Received: (qmail 10767 invoked by uid 97); 15 May 2003 19:13:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 10760 invoked from network); 15 May 2003 19:13:59 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 May 2003 19:13:59 -0000 Received: (qmail 81411 invoked by uid 500); 15 May 2003 19:11:32 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 81400 invoked from network); 15 May 2003 19:11:32 -0000 Received: from ip65-45-23-186.z23-45-65.customer.algx.net (HELO smtp.openfox.com) (65.45.23.186) by daedalus.apache.org with SMTP; 15 May 2003 19:11:32 -0000 Received: from IANPC ([10.1.1.83]) by smtp.openfox.com (8.9.3/8.9.3) with SMTP id OAA15485 for ; Thu, 15 May 2003 14:05:20 -0500 Message-ID: <00e601c31b15$d18b8230$5301010a@IANPC> From: "Ian Warner" To: "Tomcat Users List" Subject: java.lang.UnsatisfiedLinkError: no c in java.library.path Date: Thu, 15 May 2003 14:11:41 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E3_01C31AEB.E8940F80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_00E3_01C31AEB.E8940F80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi group: Any help with the follwoing error would be greatly appreciated 2003-05-15 12:50:15 StandardContext[/hello-jaxrpc]: Exception sending = context initialized event to listener instance of class = com.sun.xml.rpc.server.http.JAXRPCContextListener java.lang.UnsatisfiedLinkError: no testc in java.library.path starting the application but can't find "testc.dll" is the problem but = where should i put it under the tomcat directory structure? i have run = out of places to try - i've tried WEB-INF, WEB-INF/classes, = shared/classes and even tried puttin it jar format under WEB-INF/lib and = shared/lib but to no avail. Here's the xml that starts the app if it = helps, it is called hello-jaxrpc and resides in webapps (there's no = entry in the server.xml) Here's what i'm trying to do. I have a client that is sending a msg to a = simpe tomcat server app called hello. =20 package hello; public class HelloImpl implements HelloIF { public String message =3D "Hello "; public String sayHello(String s) { return message + si; } } The above server code works fine, the client sends a string, this server = sends back hello + string to the client, so far so good. Now the trouble comes - i'm trying to call a "c" class in testc.dll = from the above java class (modified below) but get = "java.lang.UnsatisfiedLinkError: no testc in java.library.path" in the = hello-jaxrpc_log i set up for the application. How do I set the = java.library.path ? Or what's the default path? I thought is was = webapps/WEB-INF/classes Here the modifed code package hello; public class HelloImpl implements HelloIF { public String message =3D "Hello "; public int i=3D0; public String sayHello(String s) { i =3D new HelloImpl().gemsg(); // added call to native code return message + s + i; } public native int getmsg(); // getmsg() is a c routine compiled into = testc.dll, all it does is return an integer. static { System.loadLibrary("testc"); // this fails when the application = is being loaded by tomcat, i never even get to run the client } } ------=_NextPart_000_00E3_01C31AEB.E8940F80--