cannot run Scilab

Try update-alternatives --config java and choose the OpenJDK.

Close the shell / terminal before you try to run the scilab as the path changes.