Antwort: Redirect of Plugins Directory

Posted by Joachim Wesner on
URL: http://imagej.273.s1.nabble.com/Redirect-of-Plugins-Directory-tp3701086p3701087.html

Hi,

this problem I think came up more than once:

Solution 1)

The "plugins.dir" property specifies the location of the parent of the
plugins directory. This property can be set from either the command
line or from within a Java program that starts ImageJ. For example, if
you run ImageJ with the command

     java -Dplugins.dir=/Users/wayne -cp ij.jar ij.ImageJ

it will look for the plugins folder in the /Users/wayne/ directory.
This property can also be set in a program that launches ImageJ:

     System.getProperties().setProperty("plugins.dir",
"/Users/wayne/ImageJ");
     new ImageJ(null)

Solution 2)

> Is there a way to configure that the plugin directory is stored on the
> server?

Yes. You can pass the command line option "-ijpath x:/hello" and ImageJ
will look in x:/hello/plugins for the plugins.

You could also try some trickery with Java properties, but that is more
complicated.

Alternatively, you could patch ImageJ to read the plugin path from
IJ_Props.txt, which is contained in the JAR file.


Cheers

JW



                                                                                                                                       
                      Michael Sullivan                                                                                                  
                      <michael.j.sulliv         An:      [hidden email]                                                            
                      [hidden email]>               Kopie:                                                                                  
                      Gesendet von:             Thema:   Redirect of Plugins Directory                                                  
                      ImageJ Interest                                                                                                  
                      Group                                                                                                            
                      <[hidden email].                                                                                                
                      GOV>                                                                                                              
                                                                                                                                       
                                                                                                                                       
                      01.11.2006 17:49                                                                                                  
                      Bitte antworten                                                                                                  
                      an ImageJ                                                                                                        
                      Interest Group                                                                                                    
                                                                                                                                       




Is there a mechanism that will allow the relocation of where ImageJ
(located on the C drive) looks to find the plugin directory (e.g. on a
networked drive where "my documents" that is backed-up)?  --- Mike



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________