Adding pi4j libraries in netbeans

2,775 views
Skip to first unread message

Pradeep Munikoti Srinivasa

unread,
Jul 26, 2013, 5:03:08 PM7/26/13
to pi...@googlegroups.com
Hi i am developing java application for raspberry pi in netbeans. I have installed pi4j library in my raspberry pi and its working. 
I am running java application on RPi using jar file created from netbeans. Does anyone know how to add pi4j library into netbeans?

wim vande casteele

unread,
Jul 27, 2013, 4:56:45 AM7/27/13
to pi...@googlegroups.com
Download the libs:
http://pi4j.com/download.html (direct download)

In Netbeans > your project > properties > Libraries > 'Add Jar' > Select all jars from the downloaded file and you are done

Op vrijdag 26 juli 2013 23:03:08 UTC+2 schreef Pradeep Munikoti Srinivasa het volgende:

Pradeep Munikoti Srinivasa

unread,
Jul 29, 2013, 10:12:52 AM7/29/13
to pi...@googlegroups.com
Thanks

Pradeep Munikoti Srinivasa

unread,
Jul 29, 2013, 11:03:14 AM7/29/13
to pi...@googlegroups.com
I have added the pi4j jar files to netbeans project and built the executable jar file with no errors
I have installed jdk8 early access for raspberry pi in my RPi and usually run the jar file using the following command

java -Djavafx.platform=eglfb -cp /opt/jdk1.8.0/jre/lib/jfxrt.jar:/home/pi/Keyboard.jar Keyboard.keyboard
(I tried this, but not working - Exception in Application start method)

Should i include classpath .:classes:/opt/pi4j/lib/'*' while executing jar file? How should I include this?

Thanks in advance

On Friday, July 26, 2013 5:03:08 PM UTC-4, Pradeep Munikoti Srinivasa wrote:

John Knowles

unread,
Mar 31, 2014, 6:31:22 PM3/31/14
to pi...@googlegroups.com
I am having the same issue!  I add the library but the imports still say Invalid or whatever.?? Any help on how to have this so I can finally write JAVA code to the GPIO and simply compile, and then go eat lunch?!
Reply all
Reply to author
Forward
0 new messages