[REBOL] Calling rebol script from inside java application
From: hallvard:ystad:helpinhand at: 12-Dec-2000 8:19
Hello everyone,
Sorry about the multiple submissions. It seems I need to be rough with my
email client to have it obey. Hope it works this time.
I have a problem with calling a compiled rebol executable (R/command
runtime) from inside a java application. The script.r is fairly simple: it
computes a few values and simply prints them out. It works fine as cgi, and
also when I call it *as a script* from the java application. But the
compiled code won't work, and I can't even get the output to an MS-DOS
console...
However, when I run the executable from within my java application with the
statement
Process p = Runtime.getRuntime().exec(Command);
the exit value returned is 0, even if my rebol script ends with make
error!. If I run the executable with the -cs flags, java catches the output
Unable to find encapsulated data
. If I send only the -s flag, I have the
Rebol console popping up, and java catches "no name".
Can anyone tell me what I am doing wrong? How can I get output from the
executable to the DOS console instead of to the Rebol console? Has anyone
any experience in running Rebol (executables) from java?
Regards,
Hallvard Ystad