[Scilab-Dev] Problem configuring scilab-branch-6.0 after Ubuntu 18.04 update

stephane.mottelet at utc.fr stephane.mottelet at utc.fr
Tue Oct 9 13:31:19 CEST 2018


Hello,

I just updated my Linux to Ubuntu 18.04 an, although java-headless is  
installed (javah is /usr/bin/javah)

mottelet at mottelet-HP-ProDesk-600-G1-TWR:~/git/scilab/scilab$ javah
Usage:
  javah [options] <classes>
where [options] include:
  -o <file>                Output file (only one of -d or -o may be used)
  -d <dir>                 Output directory
  -v  -verbose             Enable verbose output
  -h  --help  -?           Print this message
  -version                 Print version information
  -jni                     Generate JNI-style header file (default)
  -force                   Always write output files
  -classpath <path>        Path from which to load classes
  -cp <path>               Path from which to load classes
  -bootclasspath <path>    Path from which to load bootstrap classes
<classes> are specified with their fully qualified names
(for example, java.lang.Object).

the configure script cannot find javah:

checking JAVA_HOME variable... not defined
checking for javac... /usr/lib/jvm/default-java/bin//javac
checking for zip or jar files to include on CLASSPATH...
checking to see if the java compiler works... yes
Using JAVAC=/usr/lib/jvm/default-java/bin//javac
Java found in /usr/lib/jvm/default-java
checking type of jvm... jdk
checking java API version... 1.9
Using the following JNI include flags  
-I/usr/lib/jvm/default-java/include  
-I/usr/lib/jvm/default-java/include/linux
checking if jni.h can be included... yes
Looking for JNI libs with x86_64 as machine hardware name
Looking for /usr/lib/jvm/default-java/lib/libjava.so
Found /usr/lib/jvm/default-java/lib/libjava.so
Using the following JNI library flags -L/usr/lib/jvm/default-java/lib  
-ljava -lverify -L/usr/lib/jvm/default-java/lib/server -ljvm
Using the following runtime library path  
/usr/lib/jvm/default-java/lib:/usr/lib/jvm/default-java/lib/server
checking to see if we can link a JNI application... yes
checking for zip or jar files to include on CLASSPATH...
checking for java... /usr/lib/jvm/default-java/bin/java
checking for java_g... no
checking for javah... no
configure: error: Cannot find javah

How can I solve this problem ?

S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20181009/07253472/attachment.htm>


More information about the dev mailing list