Re: Antwort: Redirect of Plugins Directory

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Redirect-of-Plugins-Directory-tp3701086p3701089.html

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
> ______________________________________________________________________