0
Answered

java error when installing.

Matt Oko 4 years ago updated 4 years ago 3

When i double click on the install file I get....

java.io.FileNotFoundException: C:\Windows\system32\preferences.xml (Access is denied)

at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.ubooquity.Ubooquity.a(SourceFile:166)
at com.ubooquity.Ubooquity.x(SourceFile:153)
at com.ubooquity.Ubooquity.main(SourceFile:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ubooquity.e.c.a(SourceFile:823)
at com.ubooquity.Launcher.main(SourceFile:10)

Windows 7 Home Premium


Java Version 8 update 73 (build 1.8.0_73-b02)

Any assistance would be appreciated. Not usually this clueless on how to proceed. Thanks

Answered

The problem is that you are running Ubooquity from the system32 directory, which is not writable as this is a system directory (Ubooquity needs to write some files in its working directory to work properly).


This should not happen with a proper Java installation. You file association for "jar" files has probably been altered one way or another. What I mean by that is that your problem is not specific to Ubooquity but will most likely happen with any jar file you try to run by double-clicking on it.


A few ideas to fix or work around the problem:

  • Uninstall and reinstall Java
  • Or create a shortcut to the jar file, edit the shortcut to specify the working directory (the "Start in" field) you want (the one where the files will be created), then double-click on the shortcut

By the way, Ubooquity.jar is the program itself, not the installer. Ubooquity does not need to be installed, it just works in the folder of your choice. But not in System32. ;)

Ah man something so simple. Thank you for the help. I'm all set.