Non-UI apps can be distributed with a single jar, if Java is installed.
You can create a UI app that manages the non-ui app and include both of them in a single package. For further discussion please start a new thread.
B4J currently supports two types of applications: UI applications (based on JavaFX) and Non-UI applications. Non-UI applications are standard Java applications. Usually the input to such applications is with command line arguments. You should create a new project and select: The program...
You can create a UI app with all the libraries needed by the server app.
Build a package.
Add the server jar to this package and add a simple batch file that will use the embedded java to start your jar.