Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 4671 invoked from network); 6 Mar 2008 11:43:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 11:43:57 -0000 Received: (qmail 34523 invoked by uid 500); 6 Mar 2008 11:43:52 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 34510 invoked by uid 500); 6 Mar 2008 11:43:52 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 34501 invoked by uid 99); 6 Mar 2008 11:43:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 03:43:52 -0800 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 11:43:05 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JXEVS-0002SS-A2 for user@poi.apache.org; Thu, 06 Mar 2008 03:43:26 -0800 Message-ID: <15871381.post@talk.nabble.com> Date: Thu, 6 Mar 2008 03:43:26 -0800 (PST) From: teena21 To: user@poi.apache.org Subject: Error in HWPF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: freshy_flowy@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org I m new in hwpf and i want to read a word document for this i am using POI APIs HWPF my code is this HWPFDocument doc =3D new HWPFDocument (new FileInputStream (args[0])); Range r =3D doc.getRange(); System.out.println("Example you supplied:"); System.out.println("--------------=C2=AD -------"); for (int x =3D 0; x < r.numSections(); x++) { Section s =3D r.getSection(x); for (int y =3D 0; y < s.numParagraphs(); y++) { Paragraph p =3D s.getParagraph(y); for (int z =3D 0; z < p.numCharacterRuns(); z++) { CharacterRun run =3D p.getCharacterRun(z); String text =3D run.text(); System.out.print(text); } System.out.println(); } } but this code gives an error at run time java.lang.NoClassDefFoundError: org/apache/poi/hpsf/WritingNotSupp=C2=AD ortedException plz help me to remove this problem i had import all HWPF APIs --=20 View this message in context: http://www.nabble.com/Error-in-HWPF-tp1587138= 1p15871381.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org