Hello,
I've got a weird problem I'm hoping can be solved. Upon closing out of ImageJ, I get an error saying that the ij_prefs.txt file cannot be found. The reason for this is it is looking in a user profile that does not exist, not my own. The user it is looking in has never even logged onto the machine, so I don't know where it is getting that path from. Furthermore, having the preferences in any user profile at all will be an issue along the road, since I am installing the program for a computer image to deploy to multiple computers. Ideally, I'd like to put the preference file into another folder altogether. Is there any way to change this? Thanks, Katie Nance -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Katie,
> Ideally, I'd like to put the preference file into another folder > altogether. > > Is there any way to change this? Try setting the environment variable IJ_PREFS_DIR to your directory of choice. Regards, Curtis P.S. Relevant code is: https://github.com/imagej/ImageJA/blob/v1.49d/src/main/java/ij/OtherInstance.java#L240-L252 On Thu, Jul 31, 2014 at 10:28 AM, Katie Nance <[hidden email]> wrote: > Hello, > > I've got a weird problem I'm hoping can be solved. > > Upon closing out of ImageJ, I get an error saying that the ij_prefs.txt > file cannot be found. The reason for this is it is looking in a user > profile that does not exist, not my own. The user it is looking in has > never even logged onto the machine, so I don't know where it is getting > that path from. > > Furthermore, having the preferences in any user profile at all will be an > issue along the road, since I am installing the program for a computer > image to deploy to multiple computers. Ideally, I'd like to put the > preference file into another folder altogether. > > Is there any way to change this? > > Thanks, > Katie Nance > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Katie Nance
Curtis,
Thanks for the tip. I looked in my system environment variables and did not find that variable, so I created one and set it to where I wanted it. However, ImageJ still gives me the same message on close. I even went through the registry and removed any mention of the nonexistent user profile, still get the same issue. Any ideas? -Katie ---------------------------------------- From: "Curtis Rueden" <[hidden email]> Sent: Thursday, July 31, 2014 12:17 PM Hi Katie, > Ideally, I'd like to put the preference file into another folder > altogether. > > Is there any way to change this? Try setting the environment variable IJ_PREFS_DIR to your directory of choice. Regards, Curtis P.S. Relevant code is: https://github.com/imagej/ImageJA/blob/v1.49d/src/main/java/ij/OtherInstance .java#L240-L252 On Thu, Jul 31, 2014 at 10:28 AM, Katie Nance <[hidden email]> wrote: Hello, I've got a weird problem I'm hoping can be solved. Upon closing out of ImageJ, I get an error saying that the ij_prefs.txt file cannot be found. The reason for this is it is looking in a user profile that does not exist, not my own. The user it is looking in has never even logged onto the machine, so I don't know where it is getting that path from. Furthermore, having the preferences in any user profile at all will be an issue along the road, since I am installing the program for a computer image to deploy to multiple computers. Ideally, I'd like to put the preference file into another folder altogether. Is there any way to change this? Thanks, Katie Nance -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Katie,
> ImageJ still gives me the same message on close. I even went through > the registry and removed any mention of the nonexistent user profile, > still get the same issue. Since I cannot reproduce the issue on my machine, I'm afraid you'll have to dig a little deeper yourself. In this case, it might help to launch ImageJ in debug mode: http://imagej.net/Debugging#Launching_ImageJ_in_debug_mode Regards, Curtis On Fri, Aug 1, 2014 at 11:13 AM, Katie Nance <[hidden email]> wrote: > Curtis, > > Thanks for the tip. I looked in my system environment variables and did > not find that variable, so I created one and set it to where I wanted it. > However, ImageJ still gives me the same message on close. I even went > through the registry and removed any mention of the nonexistent user > profile, still get the same issue. > > Any ideas? > -Katie > > > ------------------------------ > *From*: "Curtis Rueden" <[hidden email]> > *Sent*: Thursday, July 31, 2014 12:17 PM > > > Hi Katie, > > > Ideally, I'd like to put the preference file into another folder > > altogether. > > > > Is there any way to change this? > > Try setting the environment variable IJ_PREFS_DIR to your directory of > choice. > > Regards, > Curtis > > P.S. Relevant code is: > > https://github.com/imagej/ImageJA/blob/v1.49d/src/main/java/ij/OtherInstance.java#L240-L252 > > > > On Thu, Jul 31, 2014 at 10:28 AM, Katie Nance <[hidden email]> wrote: > >> Hello, >> >> I've got a weird problem I'm hoping can be solved. >> >> Upon closing out of ImageJ, I get an error saying that the ij_prefs.txt >> file cannot be found. The reason for this is it is looking in a user >> profile that does not exist, not my own. The user it is looking in has >> never even logged onto the machine, so I don't know where it is getting >> that path from. >> >> Furthermore, having the preferences in any user profile at all will be an >> issue along the road, since I am installing the program for a computer >> image to deploy to multiple computers. Ideally, I'd like to put the >> preference file into another folder altogether. >> >> Is there any way to change this? >> >> Thanks, >> Katie Nance >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html >> > > > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi,
On Fri, 1 Aug 2014, Curtis Rueden wrote: > > ImageJ still gives me the same message on close. I even went through > > the registry and removed any mention of the nonexistent user profile, > > still get the same issue. > > Since I cannot reproduce the issue on my machine, I'm afraid you'll have to > dig a little deeper yourself. In this case, it might help to launch ImageJ > in debug mode: > > http://imagej.net/Debugging#Launching_ImageJ_in_debug_mode And maybe you can find the responsible environment variable; I could imagine that some software set the HOME variable to the invalid profile. That would explain the symptom, at least. Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |