ciao,
Andrea
Il giorno 09/gen/06, alle ore 22:19, skill...@systemsbiology.net ha
scritto:
The problem is that the ClassLoader used by Cytoscape to load plugins
does not know how to handle referenced or nested jars. The workaround
that many of us use in our plugins is to 'unjar' the referenced jar and
incorporate its classes into the plugin's jar.
If you are using an ant build script to build your plugin's jar, then
you can use the following target description. Note that your jdom.jar
file should be placed in the lib directory of your plugin.
<target name="jar" depends="compile" description="Creates PlugIn Jar
File.">
<unjar dest="${build.classes}">
<fileset dir="${pluginlib.dir}"/>
</unjar>
<jar destfile="${build.dir}/${plugin.name}.jar">
<fileset dir="${build.classes}"/>
</jar>
<echo message="${plugin.name}.jar is now complete. It is located in
build/ directory"/>
<copy file="${build.dir}/${plugin.name}.jar"
todir="${cytoroot.dir}/cytoscape/plugins"/>
</target>
Let me know if this helps with the problem.
AllanK
right now cytoscape ignores the classpath (since on many users boxes
it is out of date or wrong) so just put what hars you need after the
"-p" (for plugin) option.
java -jar cytoscape.jar -p plugins/ -p my.jar
Thanks,
-Sarah