When trying to add a remote embedded java platform on a Raspberry pi I
get an error when I click <Finish>
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 <Tools> -> <Libraries>
{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