File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Preferences not being set on windows 7

 
Adam Cripps
Ranch Hand
Posts: 41
Eclipse IDE Linux Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple application that I wrote to help me write reports. Recently at work I have been given a windows 7 machine. My application ran fine under windows xp but under windows 7 it fails to set preferences when the application closes.

I'm using these snippets of code to read and write preferences:



then later on...



to check if it has already been set and then take the necessary action if it is (read in and write).

The on exit, I write with this:



When I run the application, there is nothing on the command line that reports that there is a problem writing the preferences file (I was thinking there might be a permissions problem). Is this a known thing with Windows 7? What else can I do to debug the application? As I said earlier, my code is fine on linux/windows xp machines - it just seems to be this windows 7 setup.

TIA
Adam
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too use Windows 7. Can you show me the whole code? I would like to debug and see what does it do.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47281
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving discssion as too difficult for “beginning”.
 
Adam Cripps
Ranch Hand
Posts: 41
Eclipse IDE Linux Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mansukhdeep Thind wrote:I too use Windows 7. Can you show me the whole code? I would like to debug and see what does it do.


PM coming your way. Although I thought I would debug it, but nothing really shows up on the console about any errors setting preferences.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need fro a PM Adam. You can share anything here as long as it is legal.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic