Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 7833 invoked from network); 1 Nov 2002 17:55:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Nov 2002 17:55:56 -0000 Received: (qmail 11290 invoked by uid 97); 1 Nov 2002 17:55:23 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 11219 invoked by uid 97); 1 Nov 2002 17:55:21 -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 14586 invoked by uid 98); 1 Nov 2002 06:01:38 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Originating-IP: [136.186.1.117] From: "Peter Williams" To: tomcat-user@jakarta.apache.org Bcc: Subject: Help!!! tomcat doesn't support JNI... does it!? Date: Fri, 01 Nov 2002 06:00:41 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Nov 2002 06:00:41.0475 (UTC) FILETIME=[024B8530:01C2816C] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi everyone! I've looked all over the place for the past two days and I can't find any answers to my problem. I'm almost to the stage of taring my hair out but i thought that before i do that, i'll give list an email and see if anyone here can help. Basically what I what to do is instantiate an Java object that I have written. I can do this is JSPs but not servlets... how come!? eg int something = 0; BlahBlah useThis = new BlahBlah(); something = useThis.getSomeValue(); The above will work in JSP but not when I write it in a servlet. I really don't understand why. It's quite frustrating. However, the only reason I tried using a servlet over a JSP to instantiate my object is that my object uses JNI. Assume that the method getSomeValue() of BlahBlah uses a native static method also in BlahBlah. If I get rid of the native method (and references to it) in BlahBlah, the JSP will run fine and the output of getSomeValue() will work and be output to HTML and returned to the client. However, if my getSomeValue() uses a native method, it will die. It will compile, but give many errors when you try and load the JSP through a browser. Is it possible that JNI is not supported by JSP? If not, is it supported by using a Servlet? If so, how can I instatiate an object in a Servlet? I'm using JDK 1.4, Tomcat 4.1.12 on a windows XP machine. Please help, i don't know what to do! many thanks! =) Pete from Melbourne, Australia _________________________________________________________________ Unlimited Internet access -- and 2 months free!� Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- To unsubscribe, e-mail: For additional commands, e-mail: