The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Jni Programming Questions

Posted by Leroy on March 11, 2001 at 12:45 PM

Dear java expert, how are you doing? The main reason
why I'm writing is; because I'm a student trying to
master jni programming.

I have some questions. That I think you'll might be
able to answer. Please if you could explain each
answer in easy to understand terminology. It would
be good to also use examples.


Question 1 -
Please explain (*env)-> and env-> notation. Why would
you use parentheses around *env, instead of just
*env-> for c? You use the notation env-> for c++.
So there must be a reason for the parentheses being
around *env, instead of just being only for syntax
purposes.


I'm not sure if I have the
whole concept of java passing a string or object to a
native method down pact yet. So I'm going to ask
another question.


Question #2- Is there more than one way that java can
pass a string or object to a native method. Other than
having inside of your native method implementation; a
jni keyword which corresponds or maps, to the java
string or java object? Or, is that the only way?

Please clarify your answers for questions 1 and 2.

Please email me back your answers at
leroy0591@yahoo.com. Thanks for your time and energy!




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us