### B4J Server Quick Setup

Example of setting up a Raspberry Pi as B4J Server (as user Pi).
Prerequisite
Raspberry Pi with the latest Raspian installed.
The latest version should have Java installed.
Update & Upgrade
sudo apt-get update && sudo apt-get upgrade
Create Folder Structure
For tests:
mkdir /home/pi/b4j
Install the B4J Bridge (see category B4J-Bridge).
Test the Server Application
Copy the required applications files to the /home/pi/b4j/tempjars folder.
It might be required to change the ownership for the tempjars folder: sudo chown Pi /home/pi/b4j/tempjars.
Install Server Application
mkdir /home/pi/myserverapp
copy required files including www folder (if web app) to /home/pi/myserverapp.
Run Server Application
java -jar myserverapp.jar
or if Pi4J is used
sudo java -jar myserverapp.jar
Run the jar file as a process
java -jar myserverapp.jar&
or if Pi4J is used
sudo java -jar myserverapp.jar&

Changed: 2018-03-26 13:04, Category: Raspberry Pi, File: T6C234M1706.htm, ID: 1706