I try to launch my B4J non-ui app as service on Raspberry PI model 3.
The app works fine when I launch it from CLI.
From the service it doesn't launch - the file ServiceError (from systemctl command) is attached.
What is the info you need and how to retrieve it?
You can see in the main.java string 28 that app crashes immediately at appstart.
I tried to launch in the service the simple "Hello world" app instead and then service starts succesfully.
I also launched b4j-bridge as the service and it has been launched successfully.
So, what is the reason may cause to crash my app immediately when launch in the service?
The problem is solved.
I inserted in myapp.service file the string: WorkingDirectory=home/pi in the section [Service] before ExecStart.
Now the service work fine.