calling java function from c using jni

后端 未结 1 1718
故里飘歌
故里飘歌 2021-02-10 03:14

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:46

    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)
提交回复
热议问题