You could try replacing all instances of where java is called with the full path
to java.exe which on my machine would be C:/Program
Files/Java/jre6/bin/java.exe
The part you want is
sh.run('cmd /c _java_ -jar
So it becomes
sh.run('cmd /c C:\Program Files\Java\jre6\bin\java.exe -jar
or
sh.run('cmd /c C:\\Program Files\\Java\\jre6\\bin\\java.exe -jar
I suppose I could have the user hard code the path to java in but I'd think in
99.99% of cases just calling java would work.
--
Carbonize
<http://forum.pspad.com/read.php?2,51923,51973>
PSPad freeware editor http://www.pspad.com