calling java function from c using jni

后端 未结 1 1307
逝去的感伤
逝去的感伤 2021-02-10 03:02

I\'m writing a simple program to call a Java function from my C program.

Following is my code:

#include 
#include 
#inclu         


        
1条回答
  •  无人共我
    2021-02-10 03:30

    You've got the path to the Java library (the -L option), but not the library itself. You need to include -ljvm on the link line as well.

    0 讨论(0)
提交回复
热议问题