I installed JDK 8 and used the java configuration tool to point to this version. Ubuntu 18.04 comes with JAVA 11. Your best bet is to remove the current java version and install the JDK8 version. Also I had a JDK_HOME variable pointing to the wrong location.
Op di 9 okt. 2018 om 10:59 schreef <stephane.motte...@utc.fr>: > Hello, > > I just updated my Linux to Ubuntu 18.04 an, although java-headless is > installed (javah is /usr/bin/javah) > > > mottelet@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. > _______________________________________________ > dev mailing list > dev@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev >
_______________________________________________ dev mailing list dev@lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev