Please help on how to access subobject in the object in JNI

Discussion in 'Java' started by shinedance, Oct 10, 2011.

  1. shinedance

    shinedance

    Joined:
    Oct 10, 2011
    Messages:
    1
    Hi All
    I have an issue I have been in trouble with.

    On java side, I have A and B classes:
    class A
    {
    int i;
    B bobject;
    }

    class B
    {
    int i;
    String s;
    }

    class Interface
    {
    public native int passToC( A aobject);
    }

    On JNI side I want to pass the fields in the class A to C side for function call. The question how to access the field with class B?

    Please give some suggestions, thank you very very much.:adore:
    shinedance, Oct 10, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Hunsley

    IBM's JNI fails where Sun's JNI works

    Alex Hunsley, Nov 3, 2003, in forum: Java
    Replies:
    4
    Views:
    834
    Alex Hunsley
    Nov 4, 2003
  2. KK
    Replies:
    2
    Views:
    515
    Big Brian
    Oct 14, 2003
  3. Dave

    const base subobject

    Dave, Apr 5, 2004, in forum: C++
    Replies:
    1
    Views:
    313
    Howard
    Apr 5, 2004
  4. Fraser Ross
    Replies:
    0
    Views:
    239
    Fraser Ross
    Apr 8, 2009
  5. surfintheusa@yahoo.com

    How to acess property of object/subobject...

    surfintheusa@yahoo.com, Jun 17, 2005, in forum: Javascript
    Replies:
    1
    Views:
    94
Loading...

Share This Page