Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JNI

 
yathish Gatty
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to extract the content of a word document.For this I am using microsoftword8 of .NET.

Now my problem is I am using FileInputStream in java to get the file input stream.Now in jni this is taken as an java object.But to extract the contents of word document I have to use microsoftword8 of .NET.Now this requires word Document object.

How do you convert the jni object i.e the java object to microsoft word parser object?

Thanks and regards,
Yathish.
 
Sainath Veepuri
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yatish,


I am trying to extract the content of a word document.For this I am using microsoftword8 of .NET.


We can directly read the word document like the way we read any other file from java.
- Sai
[ December 03, 2004: Message edited by: Sainath Veepuri ]
 
yathish Gatty
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
But I need to use the Microsoftword8 parser that is available only with .net.Therefore I am providing a bridge between java and .Net

Thanks.
 
Paulo Pontes
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look the jakarta POI project
they have a good api to read/write m$ office documents with java

http://www.javaworld.com/javaworld/jw-03-2004/jw-0322-poi.html

http://jakarta.apache.org/poi/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic