Message9986

Author zyasoft
Recipients adamburke, zyasoft
Date 2015-04-29.16:58:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430326706.33.0.340914489773.issue2346@psf.upfronthosting.co.za>
In-reply-to
Content
Tried on Windows, setting JAVA_HOME to a bad setting:

c:\jython2.7.0>bin\jython.exe -c "print 47"
47

c:\jython2.7.0>set JAVA_HOME=c:\foo

c:\jython2.7.0>bin\jython.exe -c "print 47"
Traceback (most recent call last):
  File "<string>", line 444, in <module>
  File "<string>", line 435, in main
  File "Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess", line 522, in call
  File "Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess", line 710, in __init__
  File "Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess", line 958, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified

But note that java itself is more resilient if JAVA_HOME is bad:

c:\jython2.7.0>java -jar jython.jar
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_40
Type "help", "copyright", "credits" or "license" for more information.
>>>

Also here's the output of jython --print:

c:\jython2.7.0>bin\jython.exe --print
c:\foo\bin\java -Xmx512m -Xss1024k -classpath c:\jython2.7.0\jython.jar;. -Dpython.home=c:\jython2.7.0 -Dpython.executable=c:\jython2.7.0\bin\jython.exe -Dpython.launcher.uname=windows -Dpython.launcher.tty=true org.python.util.jython
History
Date User Action Args
2015-04-29 16:58:26zyasoftsetmessageid: <1430326706.33.0.340914489773.issue2346@psf.upfronthosting.co.za>
2015-04-29 16:58:26zyasoftsetrecipients: + zyasoft, adamburke
2015-04-29 16:58:26zyasoftlinkissue2346 messages
2015-04-29 16:58:26zyasoftcreate