This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling a Java function from C++ using CNI


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]