CNI-Troubles.
Jeff Sturm
jsturm@one-point.com
Mon Aug 25 18:42:00 GMT 2003
On 2003年8月25日, 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