Eclipse PyDev(Jython)是否从M2Eclipse中引入类路径? [英] Does Eclipse PyDev (Jython) pull classpath from M2Eclipse?

查看:154
本文介绍了Eclipse PyDev(Jython)是否从M2Eclipse中引入类路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管使用PyDev尝试在Eclipse中运行Jython脚本,但我注意到Jython运行配置没有从maven / m2eclipse中拉出java类路径值。

While trying to run Jython Scripts in Eclipse using PyDev, I noticed that the Jython run configuration was not pulling the java classpath value from maven/m2eclipse.

有任何人配置eclipse,以便PyDev从maven中提取正确的类路径?

Has anybody configured eclipse so that PyDev pulls the correct classpath from maven?

注意:


  • 我实际上可以运行jython脚本,并从jre导入类,但是在解释Jython脚本时,我的maven依赖关系不会出现在类路径上。

  • 我已经看到了问题/ a href =https://stackoverflow.com/questions/1602427/using-jython-with-m2eclipse>将Jython与M2Eclipse结合使用,并使用maven插件来执行jython脚本,但这不是我对

  • I can in fact run jython scripts, and import classes from the jre, but my maven dependencies do not appear on the classpath when interpreting the Jython scripts
  • I have seen the question/answer Using Jython with M2Eclipse and have used maven plugins to execute jython scripts, but that is not what I am interested in

感兴趣

更新:查看扩展PyDev plugin使用项目类路径(容器)初始化jython运行配置。试图找出我需要依赖哪些扩展名来访问.classpath文件。

Update: Looking at extending PyDev plugin to initialize jython run configurations with the project classpath (containers). Trying to figure out which extensions I have to depend on to get access to the .classpath file.

更新:显示我需要改变的内容和方法。

Update: Figured what I need to change and how. Working on it now.

有人似乎也有同样的问题,可能已经解决了: https://github.com/Kbrowder/PyJDT

Someone Else Seems to have the same problem, and may have solved it: https://github.com/Kbrowder/PyJDT

已编辑:发布过早,更新

Edited: Posted Prematurely, updates

推荐答案

结果有人已经写了一个eclipse插件来解决这个确切的问题。

Turns out Someone has already written an eclipse plugin to solve this exact problem.

该插件称为PyJDT: https://github.com/Kbrowder/PyJDT

The plugin is called PyJDT: https://github.com/Kbrowder/PyJDT

使用PyDev在Eclipse Juno上测试它。

Tested it on Eclipse Juno with PyDev.

谢谢ķ。 Browder

这篇关于Eclipse PyDev(Jython)是否从M2Eclipse中引入类路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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