Author: pwang
Date: 2011-10-04 15:32:04 -0700 (Tue, 04 Oct 2011)
New Revision: 27060

Modified:
   cytoscape/trunk/application/src/main/java/cytoscape/plugin/PluginManager.java
Log:
Add comments for webstart classloader

Modified: 
cytoscape/trunk/application/src/main/java/cytoscape/plugin/PluginManager.java
===================================================================
--- 
cytoscape/trunk/application/src/main/java/cytoscape/plugin/PluginManager.java   
    2011-10-04 21:50:17 UTC (rev 27059)
+++ 
cytoscape/trunk/application/src/main/java/cytoscape/plugin/PluginManager.java   
    2011-10-04 22:32:04 UTC (rev 27060)
@@ -875,6 +875,14 @@
                // the creation of the class loader automatically loads the 
plugins
                classLoader = (URLClassLoader) 
ClassLoader.getSystemClassLoader();
 
+
+               // Note: For the case of websatart, we should use the following 
statement to get classLoader
+               // The URLs will be a list of URLs pointed to the jars at 
source website. This may solve the 
+               //Class not found exception, because webstart does not have 
access to the local jar files
+               // in the class path.
+               //classLoader = 
(URLClassLoader)this.getClass().getClassLoader();
+               
+               
                // iterate through the given jar files and find classes that are
                // assignable from CytoscapePlugin
                for (int i = 0; i < urls.length; ++i) {

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to