It works - Re: CNI-Troubles.

Clemens Eisserer linuxhippy@web.de
Mon Aug 25 19:02:00 GMT 2003


I again!

Thanks a lot for helping a newbie! It works, and so simple!
Thanks a lot....

lg Clemens

>On Mon, 25 Aug 2003, Clemens Eisserer wrote:
>  
>
>>Yes, I?m still having troubles. As far as I understand, I can directly
>>use C++-Classes out of java.
>>    
>>
>
>Not really.  In your example you are trying to define a Java class in C++.
>It won't work.  You must define the class in Java.  Once you do you can
>call it from C++ or Java.
>
>  
>
>>I dont understand whats wrong, althouhgt I cant imagine how GCJ should
>>know how the C++-class looks like.
>>    
>>
>
>It doesn't.  You must tell gcj about C++ methods by declaring them
>`native'.
>
>Jeff
>
>
>  
>




More information about the Java mailing list