B4J Question Raspberry Pi 2, UI support

Mostez

Well-Known Member
Licensed User
Longtime User
Hello,
according to this post: https://www.b4x.com/android/forum/threads/b4j-and-raspberry-pi-boards.37019/
UI is no longer supported and there are steps to follow if I want to run UI application.

(1) Is it still the same with Pi2 as the post was posted 2 years ago before Pi2 first produced (regarding memory issues and slow application start-up)
"The performance is quite bad. Especially the loading time. However it is usable."

(2) Is there any step by step tutorial or code example on how to create UI application for RPi2?

Thanks
 

Mark Read

Well-Known Member
Licensed User
Longtime User
1. The current version of Raspbian will run UI-B4J apps well. Loading takes a few seconds but I can live with that. The Java version is important, Java 8 is already in the noobs. This is enough. I am using the RPi 2 B and have no great problems. UI-Apps will only run full screen ( I made a smaller window for an app and had to click above the buttons, as it seemed to display correctly but internally was scaled to full screen????). I have a data acquisition app running no problem.

2. Search the forums and you will find enough. Depends on what you want to do.

https://www.b4x.com/android/forum/pages/results/?query=raspberry+pi+b4j&page=1&prefix=0

I am new to the RPi but find its a lot of fun. I wish you luck.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
The capability to run UI Apps, its NOT related directly to the Raspberry PI board, which ever module, BUT it is directly related to the java version installed on the board. There are plenty of discussions here already over this subject, so I won't go any deeper than that.
Bottom line, its not the board's fault that you can't run UI Apps, it's ORACLE's decision to stop supporting JavaFX.
Same goes with any other board Java capable.
 
Last edited:
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I just got a Raspberry Pi 3 today – the CanaKit Ultimate from Amazon, similar to the Pi 2 kit mentioned earlier in this thread.

I've followed Erel's examples and got a B4J console app showing Tick, Tick, Tick in the log every two seconds using a timer.

I would really like to develop simple UI apps, as others, just above, have accomplished.

I should be running the latest version of Raspbian and Java – I did the sudo apt-get update & upgrade commands.

I'm very new Linux. That first step is a huge one - just being able to compile and run a very simple UI example gets you 95% started.

Can I ask someone to quickly post a very simple example of how to get B4J UI apps running on a Raspberry Pi? What procedure did you use/command issued to download and install Java FX? Could you post the B4J zip file export of a very simple UI project – maybe one with a single TextArea that prints Tick, Tick, Tick every two seconds in response to a timer.

Thanks very much. I am sure this will help many, many people.

Barry.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…