<p>Indeed gcj was removed from gcc compiler suite for the release 7.1. The openjdk compiler should be used instead.<br>
I managed to build the module on opensuse by setting gcj = no in the Makefile, and set a proper JAVA_HOME on the command line. The module seems to initialize ok:</p>
<p>0(20759) DEBUG:  [core/sr_module.c:909]: init_mod(): app_java<br>
0(20759) INFO: app_java [app_java_mod.c:131]: mod_init(): Initializing Java VM with options: -Djava.compiler=/usr/lib64/jvm/java/bin/javac -D/usr/lib64/jvm/java/jre/lib/:/home/henning/repositories/kamailio/src/modules/app_java/Kamailio.jar -verbose:gc,jni<br>
0(20759) INFO: app_java [app_java_mod.c:150]: mod_init(): app_java: Java VM initialization OK<br>
0(20759) ERROR: app_java [java_support.c:180]: handle_exception(): app_java: Exception:<br>
Exception in thread "main" java.lang.NoClassDefFoundError: Kamailio</p>
<p>Your installation method by trying to match the proper kamailio version of a downloaded version to a package version is not recommended and might produce strange errors.</p>
<p>I would suggest to compile the complete kamailio all together, you will find a tutorial e.g. in our wiki.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1969?email_source=notifications&email_token=ABO7UZNHQ4UVEJJTUQWMN63PX7ZBZA5CNFSM4HRDQRTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSWBSA#issuecomment-497377480">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPSBN2J6A3Q3CAUBHDPX7ZBZANCNFSM4HRDQRTA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZLM72C3HNDJLMUNVGDPX7ZBZA5CNFSM4HRDQRTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSWBSA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1969?email_source=notifications\u0026email_token=ABO7UZNHQ4UVEJJTUQWMN63PX7ZBZA5CNFSM4HRDQRTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSWBSA#issuecomment-497377480",
"url": "https://github.com/kamailio/kamailio/issues/1969?email_source=notifications\u0026email_token=ABO7UZNHQ4UVEJJTUQWMN63PX7ZBZA5CNFSM4HRDQRTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSWBSA#issuecomment-497377480",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>