Jythonc失踪 [英] Jythonc missing

查看:163
本文介绍了Jythonc失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Jython 2.5.1.我想将我的Python文件转换为Java类文件,并且在网站上指示使用jythonc命令行工具,但找不到.有人知道我在哪里可以找到它吗?

I just installed Jython 2.5.1. I want to convert my Python file into Java class file and it is instructed on the website to use the jythonc command-line tool but I can't find it. Does anyone know where I could find it?

基本上,我要完成的工作是使我的Python代码在浏览器中运行在客户端,而最好的方法似乎是使用Jython创建一个applet.我不想创建桌面应用程序,而使用Silverlight/IronPython则是不可能的.任何其他想法都欢迎.

Basically what i was trying to accomplish is to get my Python code running client-side in a browser and the best way seemed to be by creating an applet using Jython. I don't want to create a desktop application and using Silverlight/IronPython is out of the question. Any other ideas are welcomed.

干杯!

推荐答案

Jythonc在Jython 2.2中已删除,不再受支持.将Jython代码嵌入Java的官方方法是创建解释器的实例以直接运行Jython代码.在此处上有一篇文章.

Jythonc was removed in Jython 2.2 and is no longer supported. The official way to embed Jython code in Java is to create an instance of the interpreter to run the Jython code directly. There is an article on this here.

我个人更喜欢jythonc方法,希望它在将来的Jython版本中可以恢复,即使存在很多问题.

Personally I preferred the jythonc method and hope it will be reinstated in a future version of Jython, even though it had a number of issues.

这篇关于Jythonc失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆