Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using 3rd party jar's in plugins
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
skillcoyne@systemsbiology .net  
View profile  
 More options Jan 9 2006, 4:19 pm
From: "skillco...@systemsbiology.net" <skillco...@systemsbiology.net>
Date: Mon, 09 Jan 2006 13:19:45 -0800
Local: Mon, Jan 9 2006 4:19 pm
Subject: Using 3rd party jar's in plugins
I've written a class for one of my plugins that uses the org.jdom
libraries.  I have the jdom jar referenced in my classpath, but it does
not appear to get loaded when cytoscape starts (I added -verbose to the
java call in the shell script) so I'm getting a NoClassDefError
exception when my code attempts to use it.  Has anyone run across this?
 Any ideas how I would get around this?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Splendiani  
View profile  
 More options Jan 9 2006, 4:33 pm
From: Andrea Splendiani <and...@pasteur.fr>
Date: Mon, 9 Jan 2006 22:33:45 +0100
Local: Mon, Jan 9 2006 4:33 pm
Subject: Re: [Cytoscape-discuss] Using 3rd party jar's in plugins
If it's not available on your sdk, put it in the plugin directory. If  
you still have problems (or new ones), try the extend directroy,  
either throuch the -Dextend (almost) option in the command line, or  
putting it in the the specific system directory for extensions. There  
is a Wiki page about that.

ciao,
Andrea

Il giorno 09/gen/06, alle ore 22:19, skillco...@systemsbiology.net ha  
scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allan_kuchin...@agilent.com  
View profile  
 More options Jan 9 2006, 5:24 pm
From: allan_kuchin...@agilent.com
Date: Mon, 09 Jan 2006 14:24:05 -0800
Local: Mon, Jan 9 2006 5:24 pm
Subject: Re: Using 3rd party jar's in plugins
Sarah,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rowan Christmas  
View profile  
 More options Jan 12 2006, 7:05 pm
From: Rowan Christmas <rowanx...@gmail.com>
Date: Thu, 12 Jan 2006 16:05:11 -0800
Local: Thurs, Jan 12 2006 7:05 pm
Subject: Re: [Cytoscape-discuss] Re: Using 3rd party jar's in plugins
you can also specify for Cytoscape to load that jar by loading it as
though it were a plugin...

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

On 1/9/06, allan_kuchin...@agilent.com <allan_kuchin...@agilent.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
skillcoyne@systemsbiology .net  
View profile  
 More options Jan 31 2006, 1:02 pm
From: "skillco...@systemsbiology.net" <skillco...@systemsbiology.net>
Date: Tue, 31 Jan 2006 10:02:02 -0800
Local: Tues, Jan 31 2006 1:02 pm
Subject: Re: Using 3rd party jar's in plugins
I've just discovered that the jar I want to use is in the the
Cytoscape/lib directory (jdom.jar).  Does that make a difference for
the plugins or do I still need to use these other tricks?  If it does
make a difference, how do I reference that jar?  (I'm sure this is a
very basic question but I'm still getting a handle on pathing)

Thanks,
-Sarah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iliana avila-campillo  
View profile  
 More options Jan 31 2006, 1:13 pm
From: iliana avila-campillo <iliana.av...@gmail.com>
Date: Tue, 31 Jan 2006 10:13:12 -0800
Local: Tues, Jan 31 2006 1:13 pm
Subject: Re: [Cytoscape-discuss] Re: Using 3rd party jar's in plugins

Sarah,

If you are starting Cytoscape the normal way (using the start-up scripts, or
the ant file that comes with Cytoscape) cytoscape/lib is already in your
classpath. Use jdom the same way you are doing it right now (just add import
statements to your java files).
-iliana

On 1/31/06, skillco...@systemsbiology.net <skillco...@systemsbiology.net>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »