Re: Raspberry Pi
Jonathan, Mithat, Thanks for the input. Lou On 12/19/2019 12:47 PM, Jonathan Bergh wrote: Hi Lou, I have used NB with RPi as a remote platform - it worked beautifully, in fact i was surprised (in a really good way) how easily it worked. On Thu, Dec 19, 2019 at 8:38 PM Lou <mailto:lk...@knob.com>> wrote: Does anyone have experience/guidance using NetBeans with Raspberry Pi? Would you recommend using NetBeans on the Raspberry or trying to add the Raspberry as a remote platform? The project is a internet/USB com first with Raspberry Pi control of several servos added second. I am new to NetBeans, my Java is rusty, but Java sees the correct answer for a mostly communication application. Lou
Raspberry Pi
Does anyone have experience/guidance using NetBeans with Raspberry Pi? Would you recommend using NetBeans on the Raspberry or trying to add the Raspberry as a remote platform? The project is a internet/USB com first with Raspberry Pi control of several servos added second. I am new to NetBeans, my Java is rusty, but Java sees the correct answer for a mostly communication application. Lou
Re: {NetBeans IDE] {JAVA]
Pete, thanks for the clue. Looking at the file structure remotely, I think you are correct there is another install of java. I need to check the documentation. ("When all else fails, read the ... manual") Lou On 10/14/2019 3:34 AM, Pete Whelpton wrote: Hi Lou, Sounds like one of two things: 1) The linker needs to access that .so file and can't - probably because it is in the home directory of the pi user. If you move the jdk folder under /usr/lib/ (on my Linux laptop I tend to stick all the different version of Java I have in /usr/lib/jdk/) with owner permission for the root user/group it should have the permissions it needs there. 2) There is another version of Java already installed on Raspian and some of the environment variables / symlinks that came with it are causing a conflict. If you try java -version at the shell do you get a version number? I have a Pi 3B at home so will try and replicate - probably won't get a chance until this weekend. Pete On Wed, Oct 9, 2019 at 5:13 AM Lou <mailto:lk...@knob.com>> wrote: When trying to add a remote embedded java platform on a Raspberry pi I get an error when I click Looking at the Raspberry file structure it looks like the jre gets properly installed, however the last step fails. The following output seems to indicate that the problem is "error while loading shared libraries: libjli.so:" which I do not see in the raspberry /lib/ directory. How do I fix this? With the error the IDE does not know about the remote platform and I can't move on. I see libjli.so in the IDE under -> {Output} ant -f C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=* -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties connect-ssh-password connect-ssh-password: Connecting to 192.168.1.147:22 <http://192.168.1.147:22> cmd : mkdir -p '/home/pi/NetBeansProjects/' Connecting to 192.168.1.147:22 <http://192.168.1.147:22> done. Connecting to 192.168.1.147:22 <http://192.168.1.147:22> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar org-netbeans-modules-java-j2seembedded-probe.jar platform.properties /home/pi/jre//bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: Remote command failed with exit status 127 BUILD FAILED (total time: 10 seconds) {Raspberry pi file structure} pi@raspberrypi:~ $ ls Desktop Downloads MagPi Music Pictures Templates Documents jre mu_code NetBeansProjects Public Videos pi@raspberrypi:~ $ ls NetBeansProjects org-netbeans-modules-java-j2seembedded-probe.jar <- pi@raspberrypi:~ $ ls jre bin bom COPYRIGHT lib release THIRDPARTYLICENSEREADME.txt pi@raspberrypi:~ $ ls jre/bin java keytool rmid rmiregistry pi@raspberrypi:~ $ ls jre/lib <- arm jvm.hprof.txt calendars.properties logging.properties charsets.jar management classlist management-agent.jar content-types.properties meta-index currency.data net.properties ext resources.jar gcf.jar rt.jar hijrah-config-umalqura.properties security jce.jar tzdb.dat jsse.jar pi@raspberrypi:~ $ -- Lou
Re: {NetBeans IDE] {JAVA]
I started with https://www.youtube.com/watch?v=ebHbDlTnV-I It is a little dated (2014) but all seems to work until the end Looking at the directory structure on the Raspberry, the Remote Platform seems to create the structure in jre. However, it looks to me tat the required library libjli.so is not loaded on the pi. JDK 1.8.0_211 NetBeans is on Windows 10, Raspbian OS on the Raspberry Pi 3 B+ Lou On 10/13/2019 2:55 PM, Geertjan Wielenga wrote: OK, I see C:\\Program Files\\NetBeans-11.1 in there, but I don't think anyone has tried or verified that with Raspberry Pi, what would be the procedure to try that out? Gj On Sun, Oct 13, 2019 at 10:54 PM Geertjan Wielenga mailto:geert...@apache.org>> wrote: What version of the JDK are you using? Which operating system, which version of NetBeans? Which steps did you follow, what must we do to reproduce the problem? Gj On Sun, Oct 13, 2019 at 10:53 PM Lou mailto:lk...@knob.com>> wrote: I could use some help here. I'm new to NetBeans and don't have a clue where to start. Lou On 10/8/2019 10:13 PM, Lou wrote: When trying to add a remote embedded java platform on a Raspberry pi I get an error when I click Looking at the Raspberry file structure it looks like the jre gets properly installed, however the last step fails. The following output seems to indicate that the problem is "error while loading shared libraries: libjli.so:" which I do not see in the raspberry /lib/ directory. How do I fix this? With the error the IDE does not know about the remote platform and I can't move on. I see libjli.so in the IDE under -> {Output} ant -f C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=* -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties connect-ssh-password connect-ssh-password: Connecting to 192.168.1.147:22 <http://192.168.1.147:22> cmd : mkdir -p '/home/pi/NetBeansProjects/' Connecting to 192.168.1.147:22 <http://192.168.1.147:22> done. Connecting to 192.168.1.147:22 <http://192.168.1.147:22> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar org-netbeans-modules-java-j2seembedded-probe.jar platform.properties /home/pi/jre//bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: Remote command failed with exit status 127 BUILD FAILED (total time: 10 seconds) {Raspberry pi file structure} pi@raspberrypi:~ $ ls Desktop Downloads MagPi Music Pictures Templates Documents jre mu_code NetBeansProjects Public Videos pi@raspberrypi:~ $ ls NetBeansProjects org-netbeans-modules-java-j2seembedded-probe.jar <- pi@raspberrypi:~ $ ls jre bin bom COPYRIGHT lib release THIRDPARTYLICENSEREADME.txt pi@raspberrypi:~ $ ls jre/bin java keytool rmid rmiregistry pi@raspberrypi:~ $ ls jre/lib <- arm jvm.hprof.txt calendars.properties logging.properties charsets.jar management classlist management-agent.jar content-types.properties meta-index currency.data net.properties ext resources.jar gcf.jar rt.jar hijrah-config-umalqura.properties security jce.jar tzdb.dat jsse.jar pi@raspberrypi:~ $ -- Lou
Re: {NetBeans IDE] {JAVA]
I could use some help here. I'm new to NetBeans and don't have a clue where to start. Lou On 10/8/2019 10:13 PM, Lou wrote: When trying to add a remote embedded java platform on a Raspberry pi I get an error when I click Looking at the Raspberry file structure it looks like the jre gets properly installed, however the last step fails. The following output seems to indicate that the problem is "error while loading shared libraries: libjli.so:" which I do not see in the raspberry /lib/ directory. How do I fix this? With the error the IDE does not know about the remote platform and I can't move on. I see libjli.so in the IDE under -> {Output} ant -f C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=* -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties connect-ssh-password connect-ssh-password: Connecting to 192.168.1.147:22 cmd : mkdir -p '/home/pi/NetBeansProjects/' Connecting to 192.168.1.147:22 done. Connecting to 192.168.1.147:22 cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar org-netbeans-modules-java-j2seembedded-probe.jar platform.properties /home/pi/jre//bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: Remote command failed with exit status 127 BUILD FAILED (total time: 10 seconds) {Raspberry pi file structure} pi@raspberrypi:~ $ ls Desktop Downloads MagPi Music Pictures Templates Documents jre mu_code NetBeansProjects Public Videos pi@raspberrypi:~ $ ls NetBeansProjects org-netbeans-modules-java-j2seembedded-probe.jar <- pi@raspberrypi:~ $ ls jre bin bom COPYRIGHT lib release THIRDPARTYLICENSEREADME.txt pi@raspberrypi:~ $ ls jre/bin java keytool rmid rmiregistry pi@raspberrypi:~ $ ls jre/lib <- arm jvm.hprof.txt calendars.properties logging.properties charsets.jar management classlist management-agent.jar content-types.properties meta-index currency.data net.properties ext resources.jar gcf.jar rt.jar hijrah-config-umalqura.properties security jce.jar tzdb.dat jsse.jar pi@raspberrypi:~ $ -- Lou
{NetBeans IDE] {JAVA]
When trying to add a remote embedded java platform on a Raspberry pi I get an error when I click Looking at the Raspberry file structure it looks like the jre gets properly installed, however the last step fails. The following output seems to indicate that the problem is "error while loading shared libraries: libjli.so:" which I do not see in the raspberry /lib/ directory. How do I fix this? With the error the IDE does not know about the remote platform and I can't move on. I see libjli.so in the IDE under -> {Output} ant -f C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=* -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties connect-ssh-password connect-ssh-password: Connecting to 192.168.1.147:22 cmd : mkdir -p '/home/pi/NetBeansProjects/' Connecting to 192.168.1.147:22 done. Connecting to 192.168.1.147:22 cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar org-netbeans-modules-java-j2seembedded-probe.jar platform.properties /home/pi/jre//bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: Remote command failed with exit status 127 BUILD FAILED (total time: 10 seconds) {Raspberry pi file structure} pi@raspberrypi:~ $ ls Desktop Downloads MagPi Music Pictures Templates Documents jre mu_code NetBeansProjects Public Videos pi@raspberrypi:~ $ ls NetBeansProjects org-netbeans-modules-java-j2seembedded-probe.jar <- pi@raspberrypi:~ $ ls jre bin bom COPYRIGHT lib release THIRDPARTYLICENSEREADME.txt pi@raspberrypi:~ $ ls jre/bin java keytool rmid rmiregistry pi@raspberrypi:~ $ ls jre/lib <- arm jvm.hprof.txt calendars.properties logging.properties charsets.jar management classlist management-agent.jar content-types.properties meta-index currency.data net.properties ext resources.jar gcf.jar rt.jar hijrah-config-umalqura.properties security jce.jar tzdb.dat jsse.jar pi@raspberrypi:~ $ -- Lou