linux - In zabbix java geatway how can we provide runtime JAVA_HOME property for JDK without affecting existing JAVA_HOME property -
i using zabbix monitoring java base application server , want enable jmx monitoring. in order jmx monitoring need configure java gateway on server , agent have added java gateway on zabbix server, facing problem when going enable java gateway on application server. application using jre , zabbix java gateway required javac , jar come jdk. question how can define separate java_home variable property use jdk in zabbix java gateway, because dont want effect on existing jre property.
thanks
since referring javac
, jar
, presume talking building java gateway zabbix sources.
one way accomplish asking prepend path jdk binaries during configuration, so:
$ path=/home/user3700399/jdk-1.7.0_45/bin:$path ./configure --enable-java
another, since java platform-independent, compile java gateway on server have no problem compiling on, , copy files over. if run make install
, necessary files in sbin/zabbix_java
directory in installation path.
Comments
Post a Comment