escondax
Posts: 29
Joined: Tue Dec 27, 2016 7:38 am

Javafx with old version of JDK(1.8.0) error

Tue Oct 03, 2017 9:35 am

Hello everyone,

I was using raspberry pi B before and installed javafx compatible version with "armv6hf-sdk".My javafx program was working correctly with jdk 1.8.0.

Then I wanted to update raspberry pi B to raspberry pi 3 for performance criteria.I made all configurations (jdk 1.8.0 and armv6hf-sdk) as in B model.But unfortunately same javafx program indicated an error which is shown below.I have to run this javafx file in raspberry pi and it is very important for me.

Raspberry pi B OS :"wheezy"
Raspberry pi 3 OS:"stretch"

I also cehcked this topic :viewtopic.php?t=97367

But As I informed above, this program was working with with 1.8.0 jdk and armvf6hf-sdk for javafx in raspberry pi B model.

I used this configuration to run my javafx program :

Code: Select all

/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/bin/java -Dfile.encoding=UTF-8  -Djava.ext.dirs=/opt/armv6hf-sdk/rt/lib/ext -jar /projects/puttolightfx/PutToLightFX/dist/PutToLightFX.jar 
Output is :

Code: Select all

Exception in Application start method
Cannot create resource
Exception in thread "Thread-4" java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:875)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$146(LauncherImpl.java:157)
        at com.sun.javafx.application.LauncherImpl$$Lambda$54/32066566.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.UnsatisfiedLinkError: /opt/armv6hf-sdk/rt/lib/arm/libjavafx_font_pango.so: libpangoft2-1.0.so.0: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1083)
        at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:201)
        at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:94)
        at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
        at com.sun.javafx.font.freetype.OSPango.lambda$static$251(OSPango.java:36)
        at com.sun.javafx.font.freetype.OSPango$$Lambda$158/24502537.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.font.freetype.OSPango.<clinit>(OSPango.java:35)
        at com.sun.javafx.font.freetype.FTFactory.registerEmbeddedFont(FTFactory.java:110)
        at com.sun.javafx.font.PrismFontFactory.populateFontFileNameMapGeneric(PrismFontFactory.java:1872)
        at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1774)
        at com.sun.javafx.font.PrismFontFactory.getFontResource(PrismFontFactory.java:697)
        at com.sun.javafx.font.LogicalFont.getSlot0Resource(LogicalFont.java:198)
        at com.sun.javafx.font.LogicalFont.getDefaultAAMode(LogicalFont.java:409)
        at com.sun.javafx.font.LogicalFont.getStrike(LogicalFont.java:413)
        at com.sun.javafx.font.PrismFont.getStrike(PrismFont.java:73)
        at com.sun.javafx.text.PrismTextLayout.setContent(PrismTextLayout.java:138)
        at javafx.scene.text.Text.getTextLayout(Text.java:229)
        at javafx.scene.text.Text.needsFullTextLayout(Text.java:184)
        at javafx.scene.text.Text.access$200(Text.java:95)
        at javafx.scene.text.Text$5.invalidated(Text.java:498)
        at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
        at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:145)
        at javafx.css.StyleableObjectProperty.set(StyleableObjectProperty.java:82)
        at javafx.scene.text.Text.setFont(Text.java:471)
        at com.sun.javafx.scene.control.skin.LabeledText.<init>(LabeledText.java:72)
        at com.sun.javafx.scene.control.skin.LabeledSkinBase.<init>(LabeledSkinBase.java:125)
        at com.sun.javafx.scene.control.skin.LabelSkin.<init>(LabelSkin.java:39)
        at javafx.scene.control.Label.createDefaultSkin(Label.java:158)
        at javafx.scene.control.Control.impl_processCSS(Control.java:890)
        at javafx.scene.Parent.impl_processCSS(Parent.java:1270)
        at javafx.scene.Parent.impl_processCSS(Parent.java:1270)
        at javafx.scene.Parent.impl_processCSS(Parent.java:1270)
        at javafx.scene.Node.processCSS(Node.java:8863)
        at javafx.scene.Scene.doCSSPass(Scene.java:515)
        at javafx.scene.Scene.preferredSize(Scene.java:1604)
        at javafx.scene.Scene.impl_preferredSize(Scene.java:1681)
        at javafx.stage.Window$9.invalidated(Window.java:826)
        at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
        at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
        at javafx.stage.Window.setShowing(Window.java:902)
        at javafx.stage.Window.show(Window.java:917)
        at javafx.stage.Stage.show(Stage.java:256)
        at puttolightfx.PutToLightFX.start(PutToLightFX.java:44)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$152(LauncherImpl.java:821)
        at com.sun.javafx.application.LauncherImpl$$Lambda$57/28923119.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$165(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl$$Lambda$51/20133689.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl.lambda$null$163(PlatformImpl.java:295)
        at com.sun.javafx.application.PlatformImpl$$Lambda$53/14044021.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$164(PlatformImpl.java:294)
        at com.sun.javafx.application.PlatformImpl$$Lambda$52/12275192.run(Unknown Source)
        at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
        at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
        ... 1 more

User avatar
addeswe
Posts: 23
Joined: Fri Jul 19, 2013 3:49 pm
Location: Sweden

Re: Javafx with old version of JDK(1.8.0) error

Tue Oct 03, 2017 2:49 pm

In your error. It says:

Code: Select all

Caused by: java.lang.UnsatisfiedLinkError: /opt/armv6hf-sdk/rt/lib/arm/libjavafx_font_pango.so: libpangoft2-1.0.so.0: cannot open shared object file: No such file or directory
. I guess that the compiler is not finding the shared library. Check to see if libpangoft2-1.0-0 is installed.
The best thing about UDP jokes is that I don't care if you get it or not!
“Knock, knock.” - “Who’s there?” - very long pause…. - “Java.”

escondax
Posts: 29
Joined: Tue Dec 27, 2016 7:38 am

Re: Javafx with old version of JDK(1.8.0) error

Wed Oct 04, 2017 6:36 am

I installed necessarry library which is given by error.It solved my problem, thank you for your interest.

Return to “Java”

Who is online

Users browsing this forum: No registered users and 6 guests