Message12774
jython.exe is a launcher compiled from jython.py and depends on python27.dll (also in bin). If you don't have the DLL, the launcher doesn't work.
There is a bug #2620 related to this that stems from something Windows does to make sure you're using the most up-to-date DLL. (This is as I understand it.) It worked fine when we built 2.7.1, but if you install a later Python 2.7, it stops working. This may be your problem.
You can work around this by doing for yourself what the launcher would do, something like:
java -Xmx512m -Xss2560k -classpath D:\{folder}\jython2.7.1\jython.jar;. -Dpython.home=D:\{folder}\jython2.7.1 -Dpython.executable=D:\{folder}\jython2.7.1\bin\jython.exe -Dpython.launcher.uname=windows -Dpython.launcher.tty=true org.python.util.jython
Arguments to the jython command follow this. Not all of it may be necessary for your application. You may still run into problems if you use subprocess to launch Jython, since it will go for jython.exe again.
In 2.7.2 (available in beta) we wrap the correct DLL into the jython.exe to fix #2620. If you're happy to trust your work to our 2.7.2b2 it may solve your problem, and we'd appreciate the test. |
|
Date |
User |
Action |
Args |
2019-11-15 08:54:05 | jeff.allen | set | messageid: <1573808045.64.0.725571297822.issue2830@roundup.psfhosted.org> |
2019-11-15 08:54:05 | jeff.allen | set | recipients:
+ jeff.allen, marcuswongkl |
2019-11-15 08:54:05 | jeff.allen | link | issue2830 messages |
2019-11-15 08:54:05 | jeff.allen | create | |
|