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 <lk...@knob.com
<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 <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 <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