30.01.2018

SWT library on Raspberry Pi

apt-get install libswt-gtk-4-java
apt-get install libswt-gtk-4-jni
apt-get install libswt-cairo-gtk-4-jni

Maven

Only the SWT library is platform specific. In case of Maven you can use artifact from repository:

    <repositories>
        <repository>
            <id>jans_repo</id>
            <url>https://bitbucket.org/stmare/maven-repo/raw/master/repository/</url>
        </repository>
    </repositories>

The artifact:

    <dependency>
        <groupId>org.eclipse.swt.gtk.linux.rpi</groupId>
        <artifactId>org.eclipse.swt.gtk.linux.rpi</artifactId>
        <version>4.6.0</version>
    </dependency>

which is by me mavenified swt-gtk-4.6.0.jar

Source of this know-how is raspberrypi.org