You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by romeoamp <ro...@gmail.com> on 2010/06/23 07:28:51 UTC

Re: Using POI via JNI

Hi,

I am searching for the code for using jakartha POI.jar from C++ Source to
generate pdf and doc and xls files.can you please post a sample code.

otherwise send to this mail id : rajkumarece@gmail.com
It will be very much helpful to me.

thanks
Rajkumar.





Rob Y wrote:
> 
> I'm using POI via JNI from a C application, and it's working well for me
> when I invoke it once.
> 
> Problem is that DestroyJavaVM doesn't seem to work (returns -1), so the
> next time I try to use POI, I get an error on JNI_CreateJavaVM (also
> returns -1).  I'm running on AIX5L with java5 installed.  My app is part
> of a transaction processing system, and wants to stay resident to be
> reused as appropriate.  It's use of POI is only occasional, so I don't
> want to keep the JVM around after using it.
> 
> I can set my app to exit (and later be respawned as needed) after using
> POI, and that would solve the problem.  In fact, for debugging purposes,
> it behaves this way all the time on my development machine - that's how I
> got POI working without encountering this problem.
> 
> Anyway, this is more of a basic Java question than a POI question, but
> somebody here gave me the code I used to get started with JNI, so I was
> hoping to have some luck solving this problem too.
> 
> Thanks,
> Rob
> 

-- 
View this message in context: http://old.nabble.com/Using-POI-via-JNI-tp20774758p28967926.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org