I am trying to run Lisp Image from Java on Mac OSX. Using the image from my console, enter the following:
lisp_image --eval '(package::method "some_argument")'
everything is working fine.
In Java, I have a problem with passing quotes and double quotes using Runtime.getRuntime().exec("lisp_image --eval '(package::method \"some_argument\")'").
I also tried using:
Runtime.getRuntime().exec(new String[] {"lisp_image", "--eval ", "\'(package::method ", "--eval ", "\"", "some_argument", "\")", "\'"});
and various things with backslash escaping. Nothing works ... Using String Array seems to work only for Unix (or Windows) commands.
Any ideas?
Thanks in advance, Sven
source share