B4J Question Raspberry PI 2 + SainSmart 7" - Can i run ui apps on it?

DonManfred

Expert
Licensed User
Longtime User

Mark Read

Well-Known Member
Licensed User
Longtime User
Hello Manfred. I have had a RPi for two months now. I also use a 5" touchscreen which plugs straight onto the GPIO and has a small HDMI plug. I am using Raspian Wheezy bought as a SDcard with NOOBs. Out of the box, I was able to run B4J apps with UI. They are a little slow to start but okay. Viel Spaß.
Grüße aus Österreich
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
@ilan
Maybe i misunderstood Klaus...
While creating this thread i was not expecting to move the discussion from the tutorial to move to this thread.
I was extecting the info if it works or not.

In my dreams i was extecting to run a b4j app with ui as fullscreen app on the display.

All discussion about this can be done here for sure.

Maybe it is generally better to create a new thread instead of asking questions in a tutorial-thread... But that´s a generally problem here in forum ;-)

Sorry if interpreted @KMatle answer wrong
 
Upvote 0

Michael1968

Active Member
Licensed User
Longtime User
Hello Manfred,
I use 2,8" 3,5" 5" 7 " displays with my Raspberry`s.
my OS is now jessie.
b4j Ui apps is a litle problem because it use javaFX that was not longer supported by oracle for the Pi.
use an older Java version.

i write my apps with inline java and swing. that works perfect for me running xwindows.
Viel Spaß.
Grüße aus Geldern
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
If I remember correctly, for javaFX, java 8.065 needs to be installed which it is in the Raspbian image I have.

I tried as my first app, the bouncing smiley from Erel and it was great, quite smooth.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Yes, i need to use 8U6 for it... But i just could find 8U5 as yet on the old downloads on the oracle site

The pi and the display (7") will arrive tuesday or wednesday ;)



Danke ;)

If you look at the thread i sent you, you will see that you dont have to install a new or old java version you only need to copy the old java version files and run your app with that version.

Erel also put the right package you will need to download.

I menaged to run my ui app on my raspberry pi 2, but again there are some limitations like webviews,...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
If I remember correctly, for javaFX, java 8.065 needs to be installed which it is in the Raspbian image I have.
I do not know which version my pi will have when arriving. But i already downloaded the noobs image as i read about it in @KMatle tutorial...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
If you look at the thread i sent you, you will see that you dont have to install a new or old java version you only need to copy the old java version files and run your app with that version.
i read this, yes. And i downloaded the 8u5 so far as i dont found 8u6. Only 8u5 und 8u11 and higher
Erel also put the right package you will need to download.
Seems i missed that one. Will go over the thread again.
Thanx
I menaged to run my ui app on my raspberry pi 2, but again there are some limitations like webviews,...
I read about the limitations. But webview is not needed for me. So, no problem in case of webview ;)
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
One point I did notice is sometimes using preferences or putty, the UI is too big for the screen (mine is 800 x 600) and that means that the OK and Cancel buttons have a tendency to get lost. I trust to luck and use the tab key and the enter. Mostly I am lucky!! When writing my own java apps with UI, I make sure I leave a border in a 800 x 600 window, so nothing gets "lost". Apps seem to be either full screen or minimised, nothing between. If I select floating the I cannot move the window over the status bar at the top. Anyone else seen this?
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Just a small point from a non-expert. I was really amazed how easy it was to create a remote control app in B4A to control the RPi running a non-UI java app! Doesn't really apply to this thread..
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
See page 2 at the middle of the thread erel put a screenshot + link.
Found it...

It was the same link i was downloading the 8u5 archive; the wrong do download.
Reading more carefully and looking at the provided pictures more acurately did the trick.
I now have downloaded jdk-8-linux-arm-vfp-hflt.tar.gz
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Found it...

It was the same link i was downloading the 8u5 archive; the wrong do download.
Reading more carefully and looking at the provided pictures more acurately did the trick.
I now have downloaded jdk-8-linux-arm-vfp-hflt.tar.gz

Welcome to the club ;)
 
Upvote 0
Top