how to load a c lib and invoke it's method in java?

Discussion in 'Java' started by dxuranus, Jul 11, 2006.

  1. dxuranus

    dxuranus Guest

    just like the title
    there are a lot of resources about jni. but these resources usualy
    first write the java and then write the c,but now i hava c so what can
    i do? thanks for any help
    dxuranus, Jul 11, 2006
    1. Advertisements

  2. dxuranus

    Chris Uppal Guest

    The straightforward way -- write new JNI code, callable from Java, which itself
    calls the existing C code.

    The expensive way -- use one of:

    The interesting way -- read:
    In particular chapter 9, the code for which can also be found from the above

    -- chris
    Chris Uppal, Jul 11, 2006
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.