Jython

Message12169

Author jeff.allen
Recipients adamburke, brettcannon, jeff.allen, stefan.richthofer, zyasoft
Date 2018年11月03日.23:50:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541289021.65.0.788709270274.issue2346@psf.upfronthosting.co.za>
In-reply-to
Content
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:\Python2円.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.
History
Date User Action Args
2018年11月03日 23:50:21jeff.allensetmessageid: <1541289021.65.0.788709270274.issue2346@psf.upfronthosting.co.za>
2018年11月03日 23:50:21jeff.allensetrecipients: + jeff.allen, zyasoft, stefan.richthofer, adamburke, brettcannon
2018年11月03日 23:50:21jeff.allenlinkissue2346 messages
2018年11月03日 23:50:21jeff.allencreate

Supported by Python Software Foundation,
Powered by Roundup

AltStyle によって変換されたページ (->オリジナル) /