Let's start by getting the gateway up and running. If you installed from packages, there's likely a Java gateway package available; just install that one. If you installed from source, the Java gateway can be compiled and installed by running the following from the Zabbix source directory:
$ ./configure --enable-java && make install
By default, when compiling from source, Zabbix Java gateway files are placed in the /usr/local/sbin/zabbix_java directory. From here on, ...