Finally Solved - Feeling happy
Now I figured out what was the issue and why the issue was persistentWhy JDK10 was not working
Oracle removed javah tool from jdk10 and instead requested to compile with javac tool with -h header, but Scilab isn't ready for that change yet.For full updates read the release notes.
Why JDK8 was failing too
It was failing because Mac was unable to load the thirdparty libs provided by Scilab through the LD_LIBRARY_PATH variable.My solution:
I copied the thirdparty lib from Scilab directly to lib folder of jdk. (/jdk1.8.0_171.jdk/Contents/Home/jre/lib) and then it worked like a charm.Compiled Scilab with my name on banner
Although I did this before at time of GSoC proposal but since that was a temporary solution, and now I have a permanent fix, it feels good.Finally now I will start to work on my script with compilation capabilities.
Hoping for Best.Happily Coding
Divyanshu Kumar