Reputation: 21722
I need to use GNU Octave in a Windows environment. The Octave process will be called from Java server, using ProcessBuilder or Apache Commons Exec.
Octave needs to be run using Cygwin. What is the correct way to call Octave?
If I try to call octave directly from Windows (without Java)
cygstart octave-3.6.1.exe
I get error that a dll is missing (cygblas-0.dll). If I would start octave from cygwin shell (mintty.exe), it works. So one possible question is, is it possible to call octave outside cygwin shell by providing needed dlls?
Upvotes: 1
Views: 1601
Reputation: 21722
new ProcessBuilder("c:/cygwin/bin/bash",
"-l", // login
"-i", // interactive
"-c",
"\"octave --help --interactive --no-line-editing\"");
works.
Upvotes: 1
Reputation: 3000
Are the DLL's in your PATH environment variable? For instance my PATH includes c:\cygwin\bin and I can exec cygwin 'ls' command with no problem.
Upvotes: 2