[Scilab-Dev] [Scilab-users] 5.4.1 java error
Masaru Nomiya
nomiya at galaxy.dti.ne.jp
Fri Jun 21 11:45:46 CEST 2013
Hello,
In the Message;
Subject : Re: [Scilab-users] 5.4.1 java error
Message-ID : <51C415E1.8050407 at scilab-enterprises.com>
Date & Time: Fri, 21 Jun 2013 10:59:13 +0200
Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com> has written:
> Le 21/06/2013 10:55, Masaru Nomiya a écrit :
> > Hello,
> >
> >> What wrong with me, I wonder?
> > gdb taught me that java libraries (libjava.so, libverify.so, and
> > libjvm.so) were not linked. But why?
> >
> > configure script show me;
> >
> > JAVA_JNI_LIBS ....... = -L/usr/lib64/jvm/java/jre/lib/amd64 -ljava -lverify -L/usr/lib64/jvm/java/jre/lib/amd64/server -ljvm
> >
> > This doesn't work at all.
> >
> > Ant hint?
> >
> First, I think we should switch the discussion to the
> dev at lists.scilab.org mailing list.
Ok.
> Your problem with gdb is likely because you are running gdb on the
> Scilab binary (scilab-bin or scilab-cli-bin).
gdb just gave me a hint.
Then, I did;
$ ldd /usr/bin/scilab-bin | grep not
libsciscinotes.so.5 => /usr/lib64/scilab/libsciscinotes.so.5 (0x00007f4af6aae000)
libsciscinotes-disable.so.5 => /usr/lib64/scilab/libsciscinotes-disable.so.5 (0x00007f4af25bd000)
libjava.so => not found
libverify.so => not found
libjvm.so => not found
libjava.so => not found
libverify.so => not found
libjvm.so => not found
libjava.so => not found
libverify.so => not found
libjvm.so => not found
libjava.so => not found
libverify.so => not found
libjvm.so => not found
Why not found?
> However, Scilab needs a correct environment to run (the path to the Java
> library is an example).
What is the correct environment?
$ echo $JAVA_HOME
/usr/lib64/jvm/java
$echo $JRE_HOME
/usr/lib64/jvm/java/jre
Are these insufficient?
But, after configure, in the resulted Makefile
[...]
JAVA_JNI_INCLUDE = -I/usr/lib64/jvm/java/include -I/usr/lib64/jvm/java/include/linux
JAVA_JNI_LIBS = -L/usr/lib64/jvm/java/jre/lib/amd64 -ljava -lverify -L/usr/lib64/jvm/java/jre/lib/amd64/server -ljvm
[...]
These are entirely correct.
But, compilation didn't include them.
Why?
Regards,
---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
Not with Me!"
"No..., with money."
More information about the dev
mailing list