It depends if you are using only inputs then indexers (or HFs) are enough, but if you are using also dbxquery etc. then it must be also in sh layer.
Quite often java has installed under /opt. Check from correct installation manual how you should configure DBX when you are installing it. The easiest way is do it with GUI/web. Other option is do it via conf files, but I prefer GUI.