You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by eren aydin <ay...@yahoo.com> on 2007/03/08 09:01:52 UTC

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/