how to call a routine that returns a pointer using jni

hi this is ravi kiran,i have a situation where i need to call a c-routine from my java program that returns a pointer.how can i get the content of the pointer that the routine is returning.plz help methanx in advance
[251 byte] By [raviva] at [2007-11-26 19:48:09]
# 1
Return it as a java long.When you need to use it again then pass it in as a long and cast it to a pointer.If you need to free it then you should consider writing a finalize() method (one of the few times it is appropriate) and a destroy() method as well.
jschella at 2007-7-9 22:35:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...