简体   繁体   English

在Pydev中使用Python和Java的Jython

[英]Jython with both Python and Java in Pydev

I'm trying to set up a development enviroment for a Jython project, in particular with PyDev in Eclipse. 我正在尝试为Jython项目建立一个开发环境,特别是在Eclipse中使用PyDev。 The enviroment is trying to emulate a jython custom call, which has the following configuration file 环境试图模拟一个jython自定义调用,它具有以下配置文件

java.mainclass=org/python/util/jython
java.classpath=C:\Program Files\Jython\jython.jar
java.classpath=C:\Program Files\BMC Software\BladeLogic\NSH\br
java.classpath=C:\Program Files\BMC Software\BladeLogic\NSH\br\stdlib
java.classpath=C:\Program Files\BMC Software\BladeLogic\NSH\br\deployments
java.classpath=<default>
jvm.arg=-Xmx1024M
jvm.arg=-Dblx.cmrootdir=C:\Program Files\BMC Software\BladeLogic\NSH\br
jvm.arg=-Dpython.home=C:\Program Files\Jython
jvm.arg=-Dcom.bladelogic.cli.xmldir=C:\Program Files\BMC Software\BladeLogic\NSH\br\xml\cli

with PyDev it is easy to emulate with four last options via VM arguments in Run Configuration. 使用PyDev,可以通过运行配置中的VM参数轻松模拟最后四个选项。 But how can I force the classpath to be the one in the configuration file in thar particular order? 但是,如何以特定顺序强制类路径成为配置文件中的类路径?

THanks for your time. 谢谢你的时间。

This question was asked on another forum, answer was given, with a full video demo. 这个问题是在另一个论坛上提出的,给出了答案,并附有完整的视频演示。

Tricks included avoiding spaces in path: - BladeLogic installation is in c:\\BMC\\BladeLogic in order to keep the paths short. 技巧包括避免路径中的空格: - BladeLogic安装在c:\\ BMC \\ BladeLogic中,以保持路径短。 - Jython install is in C:\\jython - again, to keep the paths short - Eclipse workspace is in H:\\Development - for the same reason. - Jython安装在C:\\ jython中 - 再次,为了保持路径简短 - Eclipse工作区在H:\\ Development中 - 出于同样的原因。

All details (including video) on https://communities.bmc.com/message/401377#401377 https://communities.bmc.com/message/401377#401377上的所有详细信息(包括视频)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM