Results 1 to 2 of 2
  1. #1
    Sungron is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Default jvm - jobjectArray. How to get strng from it?

    Okay, I have to add another native method, but this time I dont know how to do it... well....
    In Java I have:

    Java Code:
    	
    	public native void foo(......., ........, String args[]);
    and In C I recevie

    Java Code:
    ....., jobjectArray args)
    Do anyone know how to get the C char strings from jobjectArray? Thats my problem... thanks for advice...

    PS: I tried with env->GetObjectArrayElement but I dont know how to:
    1. get the lenght of jobjectArray
    2. convert jobject (that represent one String?) to chars....
    Sungron :)

  2. #2
    Sungron is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Default

    Hey, I dont want to be rude but this topic is still alive and well, since I still dont know how to solve this problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •