Java component for displaying web pages on embedded devices

I am working on a raspberry PI project in Java. We need to show some web pages in the application, so we need a web browser component.

We tried to get WebViewfrom JavaFX, but it is not available for embedded devices. Therefore, we tried to build JavaFXusing WebView, but it causes a lot of errors in the assembly. The last error was the lack of a package libxml2-dev.

The second attempt was that of a native DJ DJ who has a web browser component. Thus, we used it and installed all kinds of dependencies, but it gives out SWTException, saying that there are no more descriptors and no variable MOZILLA_FIVE_PATH.

Is there a way to display web pages on a raspberry PI?

+4
source share
1 answer

JavaFX support on embedded devices was removed by Oracle, which launches the JDK for ARM 8u33. You can find the following instructions in the release notes :

Starting with JDK 8u33, JavaFX Embedded is removed from the ARM package and is not supported.

If you need JavaFX on embedded devices (including Raspberry PI), you can try using the built-in JavaFX SDK from Gluon. They recently added WebView support on ARM .

IDEs, , , .

+1

Source: https://habr.com/ru/post/1615967/


All Articles