<div dir="ltr"><div>I installed JDK 8 and used the java configuration tool to point to this version. Ubuntu 18.04 comes with JAVA 11.</div><div>Your best bet is to remove the current java version and install the JDK8 version. <br></div><div>Also I had a JDK_HOME variable pointing to the wrong location.<br></div></div><br><div class="gmail_quote"><div dir="ltr">Op di 9 okt. 2018 om 10:59 schreef <<a href="mailto:stephane.mottelet@utc.fr">stephane.mottelet@utc.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div style="font-family:Arial;font-size:14px">
<p>Hello,<br>
<br>
I just updated my Linux to Ubuntu 18.04 an, although java-headless is installed (javah is /usr/bin/javah)<br>
<br>
<br>
mottelet@mottelet-HP-ProDesk-600-G1-TWR:~/git/scilab/scilab$ javah<br>
Usage:<br>
  javah [options] <classes><br>
where [options] include:<br>
  -o <file>                Output file (only one of -d or -o may be used)<br>
  -d <dir>                 Output directory<br>
  -v  -verbose             Enable verbose output<br>
  -h  --help  -?           Print this message<br>
  -version                 Print version information<br>
  -jni                     Generate JNI-style header file (default)<br>
  -force                   Always write output files<br>
  -classpath <path>        Path from which to load classes<br>
  -cp <path>               Path from which to load classes<br>
  -bootclasspath <path>    Path from which to load bootstrap classes<br>
<classes> are specified with their fully qualified names<br>
(for example, java.lang.Object).<br>
<br>
<br>
the configure script cannot find javah:<br>
<br>
checking JAVA_HOME variable... not defined<br>
checking for javac... /usr/lib/jvm/default-java/bin//javac<br>
checking for zip or jar files to include on CLASSPATH...<br>
checking to see if the java compiler works... yes<br>
Using JAVAC=/usr/lib/jvm/default-java/bin//javac<br>
Java found in /usr/lib/jvm/default-java<br>
checking type of jvm... jdk<br>
checking java API version... 1.9<br>
Using the following JNI include flags -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux<br>
checking if jni.h can be included... yes<br>
Looking for JNI libs with x86_64 as machine hardware name<br>
Looking for /usr/lib/jvm/default-java/lib/libjava.so<br>
Found /usr/lib/jvm/default-java/lib/libjava.so<br>
Using the following JNI library flags -L/usr/lib/jvm/default-java/lib -ljava -lverify -L/usr/lib/jvm/default-java/lib/server -ljvm<br>
Using the following runtime library path /usr/lib/jvm/default-java/lib:/usr/lib/jvm/default-java/lib/server<br>
checking to see if we can link a JNI application... yes<br>
checking for zip or jar files to include on CLASSPATH...<br>
checking for java... /usr/lib/jvm/default-java/bin/java<br>
checking for java_g... no<br>
checking for javah... no<br>
configure: error: Cannot find javah<br>
<br>
How can I solve this problem ?<br>
<br>
S.</p>
</div>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.scilab.org" target="_blank">dev@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
</blockquote></div>