File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Reading Microsoft Word Document in JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Reading Microsoft Word Document in JAVA" Watch "Reading Microsoft Word Document in JAVA" New topic

Reading Microsoft Word Document in JAVA

Satheeshkumar Subramaniam

Joined: Jul 06, 2009
Posts: 21
Hi friends,

im using follwing code to read word document in java using apache poi package..

but im getting exception that

how to solve this issue.. please suggest me .. its urgent..

[Henry: Added Code Tags]
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46434
There's no such thing as "urgent" here. And we can't read your code without code tags.
Himanshu Kansal
Ranch Hand

Joined: Jul 05, 2009
Posts: 257
Is Hello.doc a valid word doc?
Is it placed where it is supposed to be?

And yes, as you cant go to a meeting without clothes, your code cant come here without the CODE tags

Experience and talent are independent of age
Henry Wong

Joined: Sep 28, 2004
Posts: 20538

This part doesn't make sense -- if you don't close the braces, then it is not valid syntax, then you can't compile it, and hence, you can't run it.

BTW, I added the code tags for you, but it looks like it is messy due to a combo of spaces and tabs.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rob Spoor

Joined: Oct 27, 2005
Posts: 20279

Moving to Other Open Source Projects.

How To Ask Questions How To Answer Questions
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 1141

I am Extremely curious to know if the code does compile :

My logic says it should not, since i do not have those libraries, i cannot verify so,
but i do feel that its against the schematics of the language itself.

I agree. Here's the better link:

I agree. Here's the link:
subject: Reading Microsoft Word Document in JAVA
It's not a secret anymore!