TerraD Member Apr 21, 2022 #1 I developed with B4J on my windows machine a small program that is to be executed on a Raspberry Pi. I managed to compile and to execute it in debug mode on the Raspberry. Now I want to copy the code to the Raspberry and run it on its own. Can anybody direct me to the documentation that shows how this has to be done?
I developed with B4J on my windows machine a small program that is to be executed on a Raspberry Pi. I managed to compile and to execute it in debug mode on the Raspberry. Now I want to copy the code to the Raspberry and run it on its own. Can anybody direct me to the documentation that shows how this has to be done?
C Chris2 Well-Known Member Licensed User Longtime User Apr 21, 2022 #2 1. Follow steps 1 & 2 of https://www.b4x.com/android/forum/threads/raspberry-pi-with-java-11.99606/#content to install Liberica JDK on the Pi. 2. Compile your app in Release mode to create the app jar file (this will be created in the ...\Objects\ folder). 3. Copy your app jar to the Pi and run the app with: B4X: Copy sudo pathtojava/bin/java -jar yourapp.jar Last edited: Apr 21, 2022 Upvote 1
1. Follow steps 1 & 2 of https://www.b4x.com/android/forum/threads/raspberry-pi-with-java-11.99606/#content to install Liberica JDK on the Pi. 2. Compile your app in Release mode to create the app jar file (this will be created in the ...\Objects\ folder). 3. Copy your app jar to the Pi and run the app with: B4X: Copy sudo pathtojava/bin/java -jar yourapp.jar
TerraD Member Apr 22, 2022 #3 Thank you for this information Chris - it was of great help for me, as I was able to work focused. It worked very smooth. Not sure what went wrong, when I tried it myself... 2. Compile your app in Release mode to create the app jar file (this will be created in the ...\Objects\ folder). Click to expand... Release mode: Project -> Build Standalone Package 3. Copy your app jar to the Pi and run the app with: Click to expand... In my case I was able to start the app like this: B4X: Copy java -jar myApp.jar Upvote 0
Thank you for this information Chris - it was of great help for me, as I was able to work focused. It worked very smooth. Not sure what went wrong, when I tried it myself... 2. Compile your app in Release mode to create the app jar file (this will be created in the ...\Objects\ folder). Click to expand... Release mode: Project -> Build Standalone Package 3. Copy your app jar to the Pi and run the app with: Click to expand... In my case I was able to start the app like this: B4X: Copy java -jar myApp.jar