Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Freeswitch mod_java installation problem

I am trying to install mod_java on ubuntu.

  1. I have installed the latest java(1.6).
  2. I have configured freeswitch with mod_java module enabled in module.conf.xml

then when i run the make file, it says:

freeswitch_java.h:5:17: error: jni.h: No such file or directory

I have searched through the java installtion folders, but did not find any include folder or jni.h.

Can anyone help, what is being the problem here.

Thanks for reading this question.

like image 888
Asif Avatar asked Sep 03 '26 01:09

Asif


1 Answers

I had the same problem. The solution was to run configure with the option --with-java:

./configure --with-java=/usr/lib/jvm/java-1.6.0-openjdk/include/

I don't know if it makes any difference but I added mod_java after building freeswitch without it. It was disabled in my initial build in module.conf.xml but afterwards I ran the above command plus:

make mod_java-install
like image 61
Leonidas K Avatar answered Sep 05 '26 14:09

Leonidas K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!