An example from Scilab is not updated.
With a new Scilab release all the examples are tested? I do not think so. An example: %SCI%\modules\javasci\examples\v2\build.bat is (Same in scilab-6.1.1 and scilab-2023.0.0.)
rem Path to Scilab data
set SCI="C:\Program Files\scilab-5.3.0"
rem Java API
set CLASSPATH=%SCI%/modules/javasci/jar/org.scilab.modules.javasci.jar;%SCI%/modules/types/jar/org.scilab.modules.types.jar
rem Path to native libs
set LIB_PATH="%SCI%\bin"
javac -cp %CLASSPATH% Example1.java
java -cp %CLASSPATH%;. -Djava.library.path=%LIB_PATH% Example1
After updating
rem Path to Scilab data
rem set SCI="C:\Program Files\scilab-5.3.0"
set SCI=c:\scilab-2023.0.0
set PATH=%SCI%\bin;%PATH%
rem Java API
set CLASSPATH=.;%SCI%\modules\javasci\jar\org.scilab.modules.javasci.jar;%SCI%\modules\types\jar\org.scilab.modules.types.jar;%SCI%\modules\commons\jar\org.scilab.modules.commons.jar
rem Path to native libs
rem set LIB_PATH="%SCI%\bin"
rem javac -cp %CLASSPATH% Example1.java
javac Example1.java
rem java -cp %CLASSPATH%;. -Djava.library.path=%LIB_PATH% Example1
java Example1
and running the Example1 class I received the following error:
" TCL Initialization failed. An exception occured: Unknown startup error: 1 "
The Java code is that given. Only the build file was modified. (Windows 8.1, jdk-8u361-windows-x64)
Edited by Antoine ELIAS