ysc / QuestionAnsweringSystem

QuestionAnsweringSystem是一个Java实现的人机问答系统,能够自动分析问题并给出候选答案。
Apache License 2.0
1.96k stars 1.3k forks source link

Can anyone help me with this Exception when java call python #27

Closed SummerXia93 closed 7 years ago

SummerXia93 commented 7 years ago

I am testing the method for my java application to call python code( .py );

Tried jython.jar: worked well with simple python but when the python file included third party jar it won't work;

Trying Runtime.getRuntime().exec(), Exception said "Cannot run program "F:/WorkSpace2/testPython/src/testPython/python.py": CreateProcess error=193, %1 is not a valid Win32 application"