Message12169
I've wrapped the whole final part of the launcher to catch OSError, so now I get (on stderr):
PS jython-trunk> python .\dist\bin\jython.py -c "print 42"
Failed to launch Jython using command c:\foo\bin\java ...
Use the --print option to see the command in full.
Launcher used JAVA_HOME = c:\foo
[Error 2] The system cannot find the file specified
and non-zero exit status. Undefining TEMP does not seem to upset Jython. If you define JAVA_HOME sensibly, and undefine PATH, it runs, and if both are blank you get:
PS jython-trunk> $env:JAVA_HOME=""
PS jython-trunk> $env:Path=""
PS jython-trunk> C:\Python\2.7.15\python.exe .\dist\bin\jython.py -c "print 42"
Failed to launch Jython using command java ...
Use the --print option to see the command in full.
Check PATH for java command.
[Error 2] The system cannot find the file specified
This ought to be clear enough. I have still to compile this to an exe for check-in. |
|
Date |
User |
Action |
Args |
2018-11-03 23:50:21 | jeff.allen | set | messageid: <1541289021.65.0.788709270274.issue2346@psf.upfronthosting.co.za> |
2018-11-03 23:50:21 | jeff.allen | set | recipients:
+ jeff.allen, zyasoft, stefan.richthofer, adamburke, brettcannon |
2018-11-03 23:50:21 | jeff.allen | link | issue2346 messages |
2018-11-03 23:50:21 | jeff.allen | create | |
|