Jump to content

  • Log In with Google      Sign In   
  • Create Account


[java] JNI


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 a2k   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 2000 - 07:54 AM

any of you guys use Java Native Interface before? i need to code a buncha classes in C++, but the gui is in Swing, so i need to use JNI. is it doable for the java to manipulate the C++ classes? (all i''ve seen is c++ methods manipulating java members, but i need it the other way around) a2k

Sponsor:

#2 felonius   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 2000 - 09:12 AM

You cannot effect C++ methods directly, but have to do so indirectly.

You will have to make a method in Java declared native and then in C++ implement this method. The method in C++ should then call the C++ class member.

All this is pretty detailed explained in the report I wrote. There is a recent posting in this forum about it.

Jacob Marner




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS