Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 84920 invoked by uid 500); 23 Aug 2001 04:18:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 84902 invoked from network); 23 Aug 2001 04:18:34 -0000 Received: from unknown (HELO hwajet.com.tw) (211.20.38.117) by h31.sny.collab.net with SMTP; 23 Aug 2001 04:18:34 -0000 Received: from yilmaz [211.20.38.115] by hwajet.com.tw [211.20.38.117] with SMTP (MDaemon.PRO.v4.0.0k.R) for ; Thu, 23 Aug 2001 12:26:53 +0800 Message-ID: <005901c12b8b$2df53e20$1500a8c0@hwajet.com.tw> From: "yilmaz" To: Subject: a simple ( irritating) classpath problem Date: Thu, 23 Aug 2001 12:22:11 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-MDRemoteIP: 211.20.38.115 X-Return-Path: yilmaz@hwajet.com.tw X-MDaemon-Deliver-To: tomcat-user@jakarta.apache.org X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N hi all, i have been using servlets and tomcat for a long time but till now i couldn't figure out how to set the classpath exactly Can some one please explain this briefly and clearly? you might ask "how did you use tomcat without setting the classpath" each time i used trial and error method, because the descriptions in docs never seems to work correctly. But at last i decided to solve this problem radically, becasue i am already sick of classpath problems first let me explain what my problem is: I developed a message board using servlets it works fine , but only with the default charset. namely, when users enters local charset (e.g: big5 chinese), my servlet can't recognize these chars, so only some question marks are stored into the database. i tried to solve this problem with all kinds of methods available, but none of them worked. i tried servlet interest group, it didn't work either. At last I used the ParameterParser class of the oreilly package as described in Jason's book(java servlet programming) it worked, but i had a lot of trouble with the classpath settings But still i don't know how to set it up, beacause it started not to work again. Simply when i compile my servlet it doesn't recognize parameterparser class, saying that it is not on classpath IT IS VERY IRRITATING because i put all the package (com.oreilly.servlet.*) in the same directory with the servlet (under web-inf/classes/ com/servlet/ directory) i tried putting the cos.jar file in the web-inf/lib directory, it didn't work in put these files directly under the web-inf/classes/ directory , it didn't work either according to docs, all the classes are in the classpath by default, so the compiler supposed to find these classes, but it can't then i added the full path /lib/cos.jar, to the classpath, didn't work either. well, i gave up, i just wanted to learn the LOGICAL way to set the classpath up. PLEASE help me by the i am using tomcat 4 ( already switched from tomcat 3.2.2), my OS is win 2000, JDK is 1.3 i am sick of seraching the docs every time when i have the same problem i am looking forward to your help as soon as possible THANK YOU FOR YOUR KINDNESS IN ADVANCE BEST REGARDS