Check ur class path pointing to correct jar files of POI...also which version u r using in 2.5? I don't think there is getText() method is HWPFDocument class or is it getTextTable()
Cheers Joe -----Original Message----- From: eren aydin [mailto:[EMAIL PROTECTED] Sent: 08 March 2007 16:02 To: [email protected] Subject: hwpf error when ı compile following code i get this error: C:\poi>javac Sample3.java Sample3.java:26: cannot access org.apache.poi.poifs.filesystem.POIFSFileSystem file org\apache\poi\poifs\filesystem\POIFSFileSystem.class not found file = new HWPFDocument(new FileInputStream("c:\\deneme.doc")); ^ Sample3.java:27: cannot resolve symbol symbol : method getText () location: class org.apache.poi.hwpf.HWPFDocument String dd = file.getText(); ^ 2 errors do you have any idea for this? how can ı solve this problem? thanks ///////////////////////////////////////////////////////////////////////////////////////////////////// import java.io.FileInputStream; import org.apache.poi.hwpf.usermodel.*; import org.apache.poi.hwpf.HWPFDocument; public class Sample3 { public static void main(String[] args) throws Exception{ HWPFDocument file; file = new HWPFDocument(new FileInputStream("c:\\deneme.doc")); String dd = file.getText(); System.out.println(dd); } } ////////////////////////////////////////////////////////////////////////////////////////////////////////// Eren AYDIN ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
