Ubuntu下,Eclipse中Python-interpreter配置MonkeyRunner

来源:互联网 发布:2015网络流行语 编辑:程序博客网 时间:2024/06/05 00:57
原文链接:http://dtmilano.blogspot.com/201 ... r-from-eclipse.html

(1)下载好jython-installer-2.5.3.jar
(2)将jython-installer-2.5.3.jar放到sdk目录下的/tools/lib下,并解压,删除jython-standalone.2.5.3.jar
(sudo unzip '/opt/Android-sdk-linux/tools/lib/jython-installer-2.5.3.jar' -d /opt/android-sdk-linux/tools/lib)
(3)安装好Eclipse
按照上面的文章里说的,可以下载安装pydev2.2.0.20110612419插件(其他的没试)
(4)进入Eclipse-->Window-->prerences-->Pydev-->Python-Interpreter
(5)点击New,找到/usr/bin中的python2.7,进行添加
(6)点击New,找到sdk目录下/tools/monkeyrunner,进行添加(我自己name项是monkeyrunner)
(7)新建Python project
(在Interpreter项 选择配置好name是monkeyrunner的项)
(8)输入测试的内容
(9)Run as Python Project


补充说明:

在Mac上的使用过程中,每次打开Eclipse都需要重新配置MonkeyRunner后才可继续使用。

0 0