Installed Jython from the installer.
从安装程序安装Jython。
Set the Path as follows /Users/user/jython2.7.0/bin
.
设置Path如下/Users/user/jython2.7.0/bin。
When tried to run Jython, received the following error.
当试图运行Jython时,收到以下错误。
MacBook-Pro:~ user$ jython
Traceback (most recent call last):
File "/Users/user/jython2.7.0/bin/jython", line 444, in <module>
main(sys.argv)
File "/Users/user/jython2.7.0/bin/jython", line 431, in main
os.execvp(command[0], command[1:])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 346, in execvp
_execvpe(file, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 370, in _execvpe
func(file, *argrest)
OSError: [Errno 2] No such file or directory
Tried uninstalling other packages installed through Homebrew. But nothing positive.
尝试卸载通过Homebrew安装的其他软件包。但没有什么好的。
Jython runs with the command java -jar jython.jar
from the installation directory.
Jython使用安装目录中的命令java -jar jython.jar运行。
Tried running on a clean Macbook, everything runs fine.
尝试在干净的Macbook上运行,一切运行良好。
1 个解决方案
#1
0
Resolved the problem by pointing JAVA_HOME to jdk1.8.0_131 rather than jdk9.0.4. Not sure why this solution works.
通过将JAVA_HOME指向jdk1.8.0_131而不是jdk9.0.4解决了该问题。不确定为什么这个解决方案有效
#1
0
Resolved the problem by pointing JAVA_HOME to jdk1.8.0_131 rather than jdk9.0.4. Not sure why this solution works.
通过将JAVA_HOME指向jdk1.8.0_131而不是jdk9.0.4解决了该问题。不确定为什么这个解决方案有效