解决pydev无法增加jython271 interpreter的问题

============================
解决pydev无法增加jython271 interpreter的问题
============================

从jython.org上下载了 jython-standalone-2.7-b1.jar, 获知jython271需要jre1.7.  一并安装了jdk1.7和jython271, 安装后可通过windows的命令行进入jython271解释器.

但在pydev(eclipse 3.7), 增加jython interpreter时, 却报Could not find the main class 的错误. 推测eclipse 3.7用的jdk并不是jdk1.7, 而是某个老版jdk, 导致无法识别jython271的main class.

解决方法是, 强制eclipse使用jdk1.7作为其vm. 我这边专门使用了一个批处理文件来启动eclipse.
##eclipse_start.bat file
start eclipse -vm "C:\Program Files\Java\jdk1.7.0_55\bin\javaw.exe"
另外,eclipse 的默认jre也需要是jre1.7
posted @ 2014-04-21 13:05  harrychinese  阅读(322)  评论(1编辑  收藏  举报