aspose file tools*
The moose likes Java in General and the fly likes Problem with JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with JNI" Watch "Problem with JNI" New topic
Author

Problem with JNI

yathish Gatty
Ranch Hand

Joined: Oct 05, 2004
Posts: 31
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

Joined: Sep 25, 2003
Posts: 49
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

Joined: Oct 05, 2004
Posts: 31
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

Joined: Dec 06, 2004
Posts: 20
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/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JNI