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 |
Hi Mike,
http://imagejdocu.tudor.lu/imagej-documentation-wiki/faq/can-i-change-the-location-of-the-plugins-directory -Curtis On 11/1/06, Michael Sullivan <[hidden email]> wrote: > 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 > |
In reply to this post by Sullivan, Michael J (College of Med.)
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 ______________________________________________________________________ |
In reply to this post by Sullivan, Michael J (College of Med.)
> 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 The easiest solution is to install the no-Java version of ImageJ on the network drive. -wayne > |
In reply to this post by Joachim Wesner
I am trying to get Solution 1 to work on my computer. I can paste this into
the run box: java -Dplugins.dir="C:\ImageJ PLugins" -cp "C:\Program Files\ImageJ\ij.jar" ij.ImageJ Although that sets the new plug-in folder as "C:\ImageJ PLugins" it also opens up a command prompt screen. Having an extra window appear is annoying and if you close that it will also closes ImageJ which could cause some undesirable affects. Is there anyway of using the above command that wont open up the command prompt window as well. Thanks for your time Graeme -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Joachim Wesner Sent: 01 November 2006 19:36 To: [hidden email] Subject: Antwort: Redirect of Plugins Directory 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 ______________________________________________________________________ |
Use javaw instead of java. The javaw.exe command is identical to
java.exe except that it has no associated console window. -wayne On Nov 4, 2006, at 5:53 PM, Graeme Kidd wrote: > I am trying to get Solution 1 to work on my computer. I can paste > this into the run box: > > java -Dplugins.dir="C:\ImageJ PLugins" -cp "C:\Program Files\ImageJ > \ij.jar" > ij.ImageJ > > Although that sets the new plug-in folder as "C:\ImageJ PLugins" it > also > opens up a command prompt screen. Having an extra window appear is > annoying and if you close that it will also closes ImageJ which > could cause > some undesirable affects. > > Is there anyway of using the above command that wont open up the > command prompt window as well. > > Thanks for your time > Graeme > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Joachim Wesner > Sent: 01 November 2006 19:36 > To: [hidden email] > Subject: Antwort: Redirect of Plugins Directory > > 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 > ______________________________________________________________________ |
Great javaw works a treat.
javaw -Dplugins.dir="C:\ImageJ PLugins" -cp "C:\Program Files\ImageJ\ij.jar" ij.ImageJ Rather than using the run window all the time I have created a shortcut on my desktop that runs that command. I have also made it use the ImageJ shortcut icon so all is working perfectly. Thank you - Graeme -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Rasband Wayne Sent: 05 November 2006 02:18 To: [hidden email] Subject: Re: Antwort: Redirect of Plugins Directory Use javaw instead of java. The javaw.exe command is identical to java.exe except that it has no associated console window. -wayne On Nov 4, 2006, at 5:53 PM, Graeme Kidd wrote: > I am trying to get Solution 1 to work on my computer. I can paste > this into the run box: > > java -Dplugins.dir="C:\ImageJ PLugins" -cp "C:\Program Files\ImageJ > \ij.jar" > ij.ImageJ > > Although that sets the new plug-in folder as "C:\ImageJ PLugins" it > also > opens up a command prompt screen. Having an extra window appear is > annoying and if you close that it will also closes ImageJ which > could cause > some undesirable affects. > > Is there anyway of using the above command that wont open up the > command prompt window as well. > > Thanks for your time > Graeme > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Joachim Wesner > Sent: 01 November 2006 19:36 > To: [hidden email] > Subject: Antwort: Redirect of Plugins Directory > > 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 > ______________________________________________________________________ |
Free forum by Nabble | Edit this page |