-
Hi all, I am a newcomer to java on RPI and I'm trying to test p4j-v2 for the first time. My first program is a simplyfied version of the "Minimal example application" example. After many hours struggling with, I had to give up, looking for some help. The contextI have a new P4 board (bought few days ago) and I set it as described in the following file: I use a Windows 10 desktop as develop station, with Netbeans 12 and java version "11.0.10" 2021-01-19 LTS and these are the steps:
There must be something wrong somewhere, may be trivial, but I am not able to discover it. Thank a lot for your help ! The projectThe full program output is here: This is the binary program: This is the maven project of the program. You can edit the file platform/raspberry.properties setting the connection params to send the compiled program to your RPI using sshexec and scp mvn install should build the program, sending all required files to your RPI (do not forget to edit platform/raspberry.properties) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Thanks for your feedback and very detailed info! Surely want to get you started. I have to be honest I never used Netbeans myself, so no idea if that could be related. I'm wondering if the compilation on Windows could be a problem? Would it be possible to copy your sources to the Raspberry Pi and compile and test them directly on it? |
Beta Was this translation helpful? Give feedback.
-
Requesting a bit of help here. I have downloaded and compiled Iburaggi's project on my Windows 10 laptop using Netbeans 12 and set it up exactly as suggested. I can transfer the files over to my Raspberry Pi 4 model B and execute the program in a terminal on the Raspberry Pi. However, when I try to perform the CUSTOM - Remote run from my Windows Netbeans, I get the error [main] INFO com.pi4j.util.Console - Any suggestions would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Thanks for your feedback and very detailed info! Surely want to get you started. I have to be honest I never used Netbeans myself, so no idea if that could be related.
I'm wondering if the compilation on Windows could be a problem? Would it be possible to copy your sources to the Raspberry Pi and compile and test them directly on it?