Well, maybe you can copy the jre folder (which is usually in the Openfire/jre of the installation) into the same place of your target build. I'm not a developer, so i can't say how to do this, i just know about how exes are produced here. Maybe install4j also adds some dependencies for other files and that's why taking just openfire.exe doesn't work. Your build is also produced to work with startup.bat and probably is depending on something else. You have to produce normal installation of your changed code for everything to work correctly probably, but i can't help with that.
Clik here to view.
