kaleetre
Posts: 2
Joined: Wed Jun 07, 2017 4:47 pm

Probleme by wirringPi

Wed Jun 07, 2017 4:52 pm

i try to lauch a java aplication to my raspberry pi 3 model B+ but i have this error
Exception in thread "main" java.lang.RuntimeException: Unable to open GPIO direction interface for pin [7]: Aucun fichier ou dossier de ce type

at com.pi4j.wiringpi.GpioUtil.export(Native Method)

i have install java jdk and jre, I have install the lastest version of wiring pi and pi4j and i use the snapshoot 1.2 of pi4j so don't understand why it's does'nt work ca, you help mi pls ?

User avatar
DougieLawson
Posts: 28819
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Probleme by wirringPi

Thu Jun 08, 2017 5:43 am

Is your userid connected to the I2C and SPI groups?
What version of WiringPi is installed?
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

megamarky
Posts: 4
Joined: Sun Jun 11, 2017 6:43 am

Re: Probleme by wirringPi

Mon Jun 12, 2017 11:48 am

Did you get it working? You could try to launch the application with root privileges

sudo java -jar app.jar

Or create a new user and connect it with the groups that Dougie's reply mentioned. Here's a nice reference
https://www.modmypi.com/blog/how-to-add ... -to-groups

Return to “Java”

Who is online

Users browsing this forum: No registered users and 3 guests