sv07171024
2008-12-09 07:12:17 UTC
Hi,
I'm trying to run a Java program from within my Delphi app using the
ShellExecute function.
When I execute
java -jar C:\Apps\batik-1.7\batik-rasterizer.jar D:\17B0C3B4.svg
from the console it works, but when I use this as the file parameter in my
ShellExecute function, as in
ShellExecute(Handle, 'open', 'java -jar
C:\Apps\batik-1.7\batik-rasterizer.jar D:\17B0C3B4.svg', nil, nil,
SW_SHOWNORMAL);
I get an ERROR_FILE_NOT_FOUND. Replacing "java" with its full path doesn't
help.
Ideaz any1?
TIA
Steven
I'm trying to run a Java program from within my Delphi app using the
ShellExecute function.
When I execute
java -jar C:\Apps\batik-1.7\batik-rasterizer.jar D:\17B0C3B4.svg
from the console it works, but when I use this as the file parameter in my
ShellExecute function, as in
ShellExecute(Handle, 'open', 'java -jar
C:\Apps\batik-1.7\batik-rasterizer.jar D:\17B0C3B4.svg', nil, nil,
SW_SHOWNORMAL);
I get an ERROR_FILE_NOT_FOUND. Replacing "java" with its full path doesn't
help.
Ideaz any1?
TIA
Steven