• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which method is used while passing or returning a java object from the native method?  RSS feed

 
Pritam Chatterjee
Ranch Hand
Posts: 38
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which method is used while passing or returning a java object from the native method?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't understand what you're asking. Can you rephrase it while also providing more information? The standard way to call native code is JNI.
 
Pritam Chatterjee
Ranch Hand
Posts: 38
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it System.callNative or System.loadNative?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're referring to the java.lang.System class, then that has neither of those methods. If you're referring to something else, please provide more detail.
 
Pritam Chatterjee
Ranch Hand
Posts: 38
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So will it be System.loadClass or System.loadLibrary?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "it"? What are you trying to accomplish? And no, neither methods has anything to do with calling native code (although you would call loadLibrary when using JNI before calling any methods).

I think you need to take step back and tell us *what* you intend to do, instead of asking *how* to do it.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!