Ohk, after some stack-overflowing
.. this is what I ended up doing and my ABM app works perfectly without installing java.
1. Create a folder on c drive with my app, e.g. MyApp
2. Copy the Objects folder contents to my c:\MyApp
3. Deleted bin, logs, src folder, this leaves my jar file, copymewithjar.needs, sqlite database folder etc.
4. From this link
, downloaded, Launch4bj. I have attached my xml file here for reference.
5. Created the necessary icon for my file, specified the .exe file for launchb4j to be in my c:\MyApp
6. Copied the jre folder from C:\Program Files (x86)\Java\jdk1.8.0_172\ to c:\MyApp
The folder structure for c:\MyApp should be like this (after I compile with launch4j.
NB: Open the attached xml file with Launch4j, you can change the path to your jar file, output file and re-compile after copying jre folder (as is)
Then zip the contents of your folder and distribute them. The end user can unzip, double click the .exe file and then open the browser to the port of your ABM, e.g. localhost:51047/bibleshow.
PS: what's on the xml file..
: Output file, jar file, icon
: bundled path (this is the jre path (in the same folder)), min and max version, Only use private JDK runtimes, first 64 then 32 bit.
: Header type - console (just in case)
When zipped, the complete file is about some 125MB