Skip to main content

JavaFX on Raspberry PI - libglass.so missing

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
dmsdms
Offline
Joined: 2012-12-23
Points: 0

I have installed Java 8 on my Raspberry PI (running Raspbian)
I downloaded a JavaFX example program (HelloJavaFX2) and ran
it successfully under Java 8 on my PC.
I then transfered it to the PI and ran it.
The first atttempt failed as it needed a path to jfxrt.jar
Fixing that, it then failed -
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: /usr/local/jdk1.8.0/jre/lib/arm/libglass.so
The library libglass.so is not in jdk1.8.0

The solution to this problem -

Searching the web I found the following site -
http://fxexperience.com/2012/12/javafx-on-raspberry-pi/
The article states -
* jfxrt.jar is not on the classpath by default (yet). So be sure to include it!
* -Djavafx.platform=eglfb must be specified. If not, it won’t run.
I ran my java fx test with -Djavafx.platform=eglfb and it started to work.

I now get -
ES2Pipeline: OpenGL ES 2.0 embedded device detected
1857463325: glGetError 0x500

The PI forum think this is a problem caused by the type of Mouse !
A question for a different forum.

Regards
Don

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-23
Points: 0

I suggest to repost this question to openjfx-dev@openjdk.java.net mailing list.