Go to advanced search

by douglasjunior
Thu Sep 25, 2014 4:56 pm
Forum: Java
Topic: pi4j + JavaFX in netbeans
Replies: 2
Views: 2197

Re: pi4j + JavaFX in netbeans

I think I solved the problem.

Worked by running this command:

Code: Select all

sudo java -Djavafx.platform=eglfb -classpath .:classes:lib/pi4j-core.jar:TesteRaspberryPi.jar testeraspberrypi.TesteRaspberryPi
Before I was using:

Code: Select all

sudo java -jar TesteRaspberryPi.jar
Thank you
by douglasjunior
Thu Sep 25, 2014 12:31 pm
Forum: Java
Topic: pi4j + JavaFX in netbeans
Replies: 2
Views: 2197

Re: pi4j + JavaFX in netbeans

Same problem here. If I add the pi4j-core.jar library in the project, I have the exception: pi@raspberrypi:~/Downloads$ sudo java -jar TesteRaspberryPi.jar Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...

Go to advanced search