Calling a Java function from C++ using CNI

Ranjit Mathew rmathew@gmail.com
Tue Aug 10 14:46:00 GMT 2004


Shaun Jackman wrote:
> [hello.cc]
> #include "HelloWorld.h"
>> int
> main()
> {
> HelloWorld::hello();
> return 0;
> }
> [EOF]

I am not that familiar with CNI, but surely you must
initialise the Java runtime:
 http://gcc.gnu.org/onlinedocs/gcj/Invocation.html
(See also the example at the bottom.)
Hope this helps,
Ranjit.
-- 
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /