Previously Ridzwan Aminuddin wrote:
> Thanks for your reply.
> I heeded your advice and tried fooling around with the stderr. Apparently
> even if i set the classpath through my execution statement i.e :
> command = "java -jar -classpath
> "/var/lib/zope2.8/instance/plone-site/Extensions/ test.jar"
> it doesn't seem to work. Because even though i have denoted the path to the
> jar file, this python external method requires me to be in the atual working
> directory in order o sucessfully run this command.
> What i tried was to write a shell script instead
> # My shell script
> cd $path
> java -jar test.jar
> this shell script is executed by my external method :
> command = "home/ewan/myScript"
> This works perfectly. So now i know it has to do with the physical working
> directory i am in. Simply setting the classpath doesn't work or giving the
> absolute path to the jar file doesn't work either.
> i.e :
> command = "java -jar
> Anyone knows why this is so? and is there any way around this? I find
> it inefficient that i have my DTML calling My Python calling a Shell
> Script that runs an executable. Such a long chain!
That is due to something in your java setup or java application, not
something in Zope. So we can't help you with that.
Wichert Akkerman <[EMAIL PROTECTED]> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -