简体   繁体   English

在Windows中设置Eclipse以进行Cytoscape插件开发

[英]Setting up Eclipse for Cytoscape Plugin Development in Windows

Let me begin by saying I am not an extremely experienced programmer and would would greatly appreciate it if you could fully specify any steps you might otherwise skip mentioning. 首先,我要说我不是一个非常有经验的程序员,如果您可以完全指定任何可以跳过的步骤,将不胜感激。

I am currently in the initial stages of plugin development for Cytoscape, I have created a java project in Eclipse and done the following 我目前正处于Cytoscape插件开发的初始阶段,我已经在Eclipse中创建了一个Java项目并完成了以下操作

  1. I have added cytoscape.jar as an external library 我已经添加cytoscape.jar作为外部库

  2. I have added "-p C:\\Program Files\\Cytoscape_v2.8.1\\plugins" in the arguments tab under "Program Arguments" 我在“程序参数”下的参数选项卡中添加了“ -p C:\\ Program Files \\ Cytoscape_v2.8.1 \\ plugins”

When I try running the plugin it loads cytoscape but without any installed plugins (0 plugins in plugin manager) furthermore it also has curtailed menu options (cannot import certain files, the options just aren't there anymore) 当我尝试运行该插件时,它会加载cytoscape,但没有安装任何插件(插件管理器中为0个插件),而且它的菜单选项也被缩减(无法导入某些文件,这些选项不再存在)

I suspect it is because I need to include more jar files as external libraries, however I am not sure which ones. 我怀疑这是因为我需要包括更多的jar文件作为外部库,但是我不确定哪个文件。

I am using Eclipse Indigo and Cytoscape 2.8.1. 我正在使用Eclipse Indigo和Cytoscape 2.8.1。

I don't think it is a problem with the plugin code since I have used the source code from an existing plugin as a test plugin. 我认为插件代码没有问题,因为我已使用现有插件的源代码作为测试插件。

Thanks for your patience and time. 感谢您的耐心和时间。

Sudipto 苏迪托

PS: I have already looked at the following without much success http://cytoscape.wodaklab.org/wiki/SettingUpEclipseForPluginDevelopment PS:我已经看过以下内容,但未取得太大成功:http://cytoscape.wodaklab.org/wiki/SettingUpEclipseForPluginDevelopment

Figured out the issue, didn't notice the space in my plugin path, quotes solved the whole issue. 找出问题,没有注意到我的插件路径中的空格,引号解决了整个问题。

Also, you have to set both the location of a jar file of YOUR project and the plugins. 另外,您还必须设置您的项目的jar文件和插件的位置。 This may not be very clear with eclipse, because the directions for eclipse are slightly different from those for netbeans . 这可能不是很清楚,用eclipse,因为方向日食是从那些稍有不同的NetBeans

So if you export your jar to /workspace, and you have cytoscape in /Applications/Cytoscape_v2.8.3 (OS X), then put the following in the run configuration as two separate lines: 因此,如果将jar导出到/ workspace,并且在/Applications/Cytoscape_v2.8.3(OS X)中具有cytoscape,则将以下内容放在运行配置中为两行:

-p "/Applications/Cytoscape_v2.8.3/plugins" 
-p "/workspace/jar_file_export_folder" 

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

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