A complete list of steps I followed

  1. Removed javah detection from m4/java.m4
    1. Then ran the autoreconf command to generate the new libs.
    2. Tried to compile scilab with my script, by just running sudo sh scilabcompiler.sh ( Nothing special, just the compilation process in one line)

    Error:

    Full error log could be found : https://github.com/dvkcool/scilab-work/blob/master/outputs/configlog1.log
  2. Then I tried to compile it with gcc5 (Not to use the shipped clang with Mac)
    However this didn't solve the issue either.
    Also just for the fact, the same clang works fine with jdk8, unable to figure out why this is happening.
    The error log can be found : https://github.com/dvkcool/scilab-work/blob/master/outputs/configlog2.log
  3. I even tried compiling it with jdk8 and then running it with jdk10(after removing jdk8) but it results in class not found exception, which is vaid since I guess I compiled it with jdk8 earlier, so same must be used.

Hoping for Best.
Happily Coding
Divyanshu Kumar