Hi Piet,
I actually created a JAR file consisting of the HelloWorld.class file
and the manifest file with the following contents:
Manifest-Version: 1.0
Created-By: 0.92-gcc
And I've placed this JAR file in the cytoscape plugins folder. I've
copied this manifest file from the HelloWorld.jar file that was
provided to us in one of the Cytoscape plugin tutorials I've read.
It seems very strange because in both cases (mentioned in my last
post), it seems to load the Cytoscape program half way and fails to
load the layouts, the Data Panel, the Filters and Editor tabs.
Could it be that my JAR file is missing something? Because it seems
to me that once it finishes my "HelloWorld" plugin, the program
doesn't know how to continue the rest of the program execution.
If some program execution output will help, the following is the
Eclipse output when I run my plugin (the (1) and (2) correspond to the
cases in my last post):
(1)
Hello World!
cytoscape[INFO]: starting delete action
cytoscape[INFO]: ending delete action
cytoscape[INFO]: PreferenceAction()...
cytoscape[INFO]: BookmarkAction()...
cytoscape[INFO]: CytoscapeInit static initialization
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at cytoscape.Cytoscape.exit(Cytoscape.java:431)
at cytoscape.view.CytoscapeDesktop
$1.windowClosing(CytoscapeDesktop.java:346)
at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
332)
at
java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:
332)
at java.awt.Window.processWindowEvent(Window.java:1827)
at javax.swing.JFrame.processWindowEvent(JFrame.java:279)
at java.awt.Window.processEvent(Window.java:1785)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
* Note: The NullPointerException occurred when I tried to close the
Cytoscape program by using the "X" on the upper right corner of the
program. *
(2)
cytoscape[INFO]: CytoscapeInit static initialization
cytoscape[INFO]: init mode: 1
cytoscape[INFO]: Updating plugins...
cytoscape[INFO]: loading plugins....
cytoscape.plugin.PluginManager[INFO]: - file: /etc/Cytoscape_v2.6.0/
plugins/biopax.jar
cytoscape.plugin.PluginManager[INFO]: attempting to load plugin url:
jar:file:/etc/Cytoscape_v2.6.0/plugins/biopax.jar!/
cytoscape.plugin.PluginManager[INFO]: Loading from manifest
org.mskcc.biopax_plugin.plugin.BioPaxPlugIn[INFO]: Plugin successfully
loaded
cytoscape.plugin.PluginManager[INFO]: Registering
org.mskcc.biopax_plugin.plugin.BioPaxPlugIn@109da93
cytoscape.plugin.PluginManager[INFO]: Registering
org.mskcc.biopax_plugin.plugin.BioPaxPlugIn
cytoscape.plugin.PluginManager[INFO]: Track plugin: true
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme QuickFind
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme cPath
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme yFiles
Layouts status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme LinkOut
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme Browser
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme
AutomaticLayout status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme Filters
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme Old
Filters status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme
ManualLayout status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme
CytoscapeEditor status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme Table
Import status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme PSI-MI
status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme SBML
Reader status CURRENT
cytoscape.plugin.PluginTracker[INFO]: Removing plugin/theme GraphMerge
status CURRENT
cytoscape[INFO]: loading session...
cytoscape[INFO]: Got VMM Change event. Cur VS in VMM: Sample1
cytoscape[INFO]: Creating Default Image for Sample1
cytoscape[INFO]: Got VMM Change event. Cur VS in VMM: Solid
cytoscape[INFO]: Creating Default Image for Solid
cytoscape[INFO]: Got VMM Change event. Cur VS in VMM: Universe
cytoscape[INFO]: Creating Default Image for Universe
cytoscape[INFO]: Got VMM Change event. Cur VS in VMM: default
cytoscape[INFO]: Creating Default Image for default
cytoscape[INFO]: VS Switched --> default, Last = null
cytoscape[INFO]: loading networks...
cytoscape[INFO]: loading attributes...
cytoscape[INFO]: loading expression files...
cytoscape[INFO]:
Cytoscape initialized successfully in: 5848 ms
cytoscape[INFO]: VS Switched --> default, Last = null
cytoscape[INFO]: Cytoscape Exiting....
Thanks,
Victoria
> The trick is mentioned in the last paragraph of the wiki docs on the
> subject:
>
> "*Note:* Before running the plugin for the first time, you may need to put a