Scilab + java >8 on Windows
Bug Description
Scilab does not launch when java 9 or more is installed
Steps to reproduce
Rename JRE from Scilab/jva folder (JRE.old)
Set JAVA_HOME env variable to windows installed java folder
Set Path to java/bin (At this stage java can be used to run code in a command window)
Add in Path java/bin/server (location of jwm.dll, allows scilab to overcome the issue with jwm.dll location, scilab launchs correctly with external java 8, so java is properly declared)
Launch Wscilex.exe (either 5.2.2,6.1.1 or 2023)
Paste console and logs here
A popup window appears with
"Sclilab cannot create Scilab Java Main-Class..."
or with wscilex-cli
" Could not access to the Main Scilab Class: Exception in thread "main" java.lang.NoClassDefFoundError: org/scilab/modules/core/Scilab Caused by: java.lang.ClassNotFoundException: org.scilab.modules.core.Scilab at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) "
Problem
This is a known issue, and some linux distribution are proposing patches to overcome that.
On windows, no such patched version exists that allow to use java version over 8, whereas many java libraries do not exist (or a not maintained anymore) for such an old java standard (eg javafx).
Is there a way forward ?
Thank you