在Windows中为Cytoscape插件开发设置Eclipse

时间:2022-09-11 19:21:26

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

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

1 个解决方案

#1


1  

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. This may not be very clear with eclipse, because the directions for eclipse are slightly different from those for netbeans.

此外,您必须设置您的项目的jar文件的位置和插件。对于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" 

#1


1  

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. This may not be very clear with eclipse, because the directions for eclipse are slightly different from those for netbeans.

此外,您必须设置您的项目的jar文件的位置和插件。对于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"