WScilex.exe stops immediately when launched from Java
Reported by Alain Lamy
BUG DESCRIPTION:
----------------
When launched from Java, the behaviour of Scilab (WScilex.exe) is different with scilab-6.0.0-beta-2
compared to scilab-6.0.0-beta-1 or scilab-5.5.2
A typical (simplified) java code is shown below.
With Scilab scilab-6.0.0-beta-1 or scilab-5.5.2: the Scilab window (=console) remains on the screen and is operational
With Scilab scilab-6.0.0-beta-2: the Scilab window (=console) closes immediately
I've haven't seen anything about that change.
This is blocking as this is the way Scilab is launched in our applications.
Has this already been corrected ?
Or is there a way around ?
Thanks
OTHER INFORMATION:
------------------
// Java code example
// => replace "xxxx" by correct path in code
import java.io.IOException;
public class Test_Exec_Scilab {
public static void main(String[] args) throws IOException {
String[] cmd = {"xxxx/scilab-6.0.0-beta-2/bin/WScilex.exe"};
Process p = Runtime.getRuntime().exec(cmd, null, null);
}
}