voyager18
Posts: 3
Joined: Tue Feb 04, 2020 4:00 pm

Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

Tue Feb 04, 2020 4:10 pm

Hello,
I need to install OpenJFX 13 on the Raspberry Pi 3B because I think on OpenJFX 11 there is a bug on the button "click" event that doesn't fire when the "click" occurs by a touch screen monitor instead it works clicking by a mouse.
I've found this post where this issue is attributable to a bug on OpenJFX 11 and it will fixed on version 13 https://bugs.openjdk.java.net/browse/JDK-8217955

On APT repository there is only up to OpenJDK 11.0.2 and no version 13. How can I install it?

Thanks

knute
Posts: 500
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

Tue Feb 04, 2020 7:21 pm

You can't get it from the repository but you can download it from https://gluonhq.com/products/javafx/ or you can get a complete JDK from BellSoft, https://bell-sw.com/ with their version of JavaFX. They have three versions available, I like the full version that includes JavaFX and the DeviceIO API. With my limited testing it appears to be slightly faster than OpenJDK 11.

I am curious however if you can produce an SSCCE that demonstrates the bug in 11.

voyager18
Posts: 3
Joined: Tue Feb 04, 2020 4:00 pm

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

Wed Feb 05, 2020 11:15 am

Hello,
I've downloaded and installed the complete Bellsoft verison on Raspberry then launching the command java -version from the console, Java 13.0.2 is displayed.
Launching the application with the command mvn javafx:run I've this error: Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /home/pi/.openjfx/cache/13.0.2/libprism_es2.so: /home/pi/.openjfx/cache/13.0.2/libprism_es2.so: classe ELF errata: ELFCLASS64 (Possible cause: architecture word width mismatch)

The up error is only one of lot of similar errors occurred in the stack trace. Probably when I launched the application, Maven has downloaded the wrong version of OpenJFX (might x86 or x64 version).

The following is the pom.xml file of my project.

Code: Select all

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mvd</groupId>
    <artifactId>testPi</artifactId>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>13.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId>
            <version>13.0.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.6</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.4</version>
                <configuration>
                    <mainClass>com.mvd.testPi.App</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <id>default-cli</id>
                        <configuration>
                            <mainClass>com.mvd.testPi.App</mainClass>
                        </configuration>
                    </execution>
                    <execution>
                        <id>debug</id>
                        <configuration>
                            <options>
                                <option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8000</option>
                            </options>
                            <mainClass>com.mvd.testPi.App</mainClass>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

knute
Posts: 500
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

Wed Feb 05, 2020 3:30 pm

I'm sorry, I really don't know anything about Maven or even what it does.

voyager18
Posts: 3
Joined: Tue Feb 04, 2020 4:00 pm

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

Thu Feb 06, 2020 1:02 pm

Any other can help me? :)

Return to “Java”