I want to run in non-UI mode on a Raspberry Pi (with no JavaFX). Is this possible if the application is built in UI-mode?
For me is better to build a separate jar only for non-UI mode.
Using compiler directives, I've merged the two source code, but in order to compile one or the other I have to manually edit "app.b4j" file to change AppType parameter, otherwise I get the error:
java.lang.Exception: Sub appstart signature does not match expected signature because in non-UI mode I have:
Sub AppStart (Args() As String)
but in UI mode:
Sub AppStart (Form1 As Form, args() As String)