[brailleblaster] Re: Found another one... and problem with using appdata on Windows

  • From: "Michael Whapples" <mwhapples@xxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Mon, 12 Mar 2012 22:16:29 -0000

What? Of course there is a File class, I am referring to java.io.File. Are you referring to no instance of the class? If so then that is not a concern for using the static field separator as static means the variable is assigned to the class instead of instances and so can be either accessed through an instance or the class itself (eg. java.io.File.separator, or in the case of java.io.File being imported just File.separator ).


Michael Whapples

-----Original Message----- From: John J. Boyer
Sent: Monday, March 12, 2012 9:40 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Found another one... and problem with using appdata on Windows

At the time the paths are being created there is no file class. The
class is used to create the directories afterwards.

John

On Mon, Mar 12, 2012 at 07:46:15PM -0000, Michael Whapples wrote:
I noticed the push, why aren't you using the static separator field from
the java.io.File class?

Michael Whapples

-----Original Message----- From: John J. Boyer
Sent: Monday, March 12, 2012 7:27 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Found another one... and problem with using
appdata on Windows

Keith,

Thanks for your patience and testing. I fixed the error and then tried
running BrailleBlaster. It looks like there is a permissions problem
with using the Windows appdata\roaming folder. When I run BrailleBlaster
from the command line it appears to work, but the translate item will
not work, because it can't write a temporary file. After BrailleBlaster
terminates there is an exception trace saying that the log file could
not be opened because a lock could not be obtained.

How do other applications get around this?

John

On Mon, Mar 12, 2012 at 02:47:17PM -0400, Keith Creasy wrote:
>In the file DBIni.java on line 95 you need a backslash:
>
>BBHome = System.getenv ("APPDATA") + "\" + BBID;
>
>Also looks like the sub-dirs don't get created but it worked after I
>created them by hand and then ran it.
>
>Keith
>

--
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities



--
John J. Boyer, Executive Director
GodTouches Digital Ministry, Inc.
http://www.godtouches.org
Madison, Wisconsin, USA
Peace, Love, Service



Other related posts: