<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I am trying to build syslog-ng with java and json support on Ubuntu 16.0.4.<div class=""><br class=""></div><div class="">I can’t use prepackaged version because ubuntu have decided that one must not have  both rsyslog (which is our corporate standard) and syslog-ng (which I need for its pattern matching in an application) on the same machine. Installing one package removes the other.</div><div class=""><br class=""></div><div class="">As well as the standard build tools I have installed these packages via apt: jsoncpp, jre and gradle.   Simply running ./configure ran through but did not find java (i.e. java and java-module were both set to no).   I added —enable java and configure terminated complaining that it could not find java.  I dug into the configure script and found that it was executing “<font face="Menlo" class="">which javac</font>”  and “<font face="Menlo" class="">javah</font>” both of which failed.  I changed JAVAC to “java” and the configure script then completed with both java and java module enabled.</div><div class=""><br class=""></div><div class="">Running make then failed </div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">builder@secgendev02:~/src/syslog-ng-3.17.2$ make<br class="">mkdir -p modules/java/syslog-ng-core/classes<br class="">  GEN      modules/java/syslog-ng-core/classes/org/syslog_ng/LogMessage.class<br class="">Unrecognized option: -d<br class="">Error: Could not create the Java Virtual Machine.<br class="">Error: A fatal exception has occurred. Program will exit.<br class="">Makefile:20740: recipe for target 'modules/java/syslog-ng-core/classes/org/syslog_ng/LogMessage.class’ failed<br class=""><br class=""></font></div><div class="">I am guessing that the version of java the jre package installed is not compatible with the configure script.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class=""><font face="Menlo" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(52, 188, 38);" class=""><b class="">builder@secgendev02</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">:</span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">~/src/syslog-ng-3.17.2</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">$ java -version</span></font></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">openjdk version "1.8.0_181"</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13)</font></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class="">OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)</font></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font face="Menlo" class=""><br class=""></font></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I know that configure checks the java version so I am somewhat surprised…</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Any Ideas on what to try next?</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Russell</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></body></html>