View Single Post
Old 04-16-2007   #3 (permalink)
Alun Harford


 
 

Re: Java Programming Problem

Death_Delver_Grim wrote:
> I have administration privilages on my computer but when ever I try to save a
> java file off of NotePad into my C:\ drive or any of their sub folders except
> my documents, I get a message box saying I dont have permission to save the
> file in that place and to contact my administrator. I just got vista so I
> don't know much about how to work it yet.


When a program is run (even by an administrator) it's run with the
privileges of a normal user unless it's elevated to admin access (those
UAC dialogs you see when you install things are doing that).
This is basically the Windows version of sudo.

If you right-click on an application, and choose "run as administrator",
(and accept the UAC prompt) it'll run with admin access and be able to
do whatever it wants.
You want to run the JVM as an administrator. I'm not sure if Sun has a
nice method of doing this. A (bad) workaround would be to right-click on
java.exe, go to properties, go to compatibility settings and check "Run
as Administrator".
If Java is integrated with explorer on your system, you might be able to
right-click on .jar files and choose "Run as Administrator"

Alun Harford
My System SpecsSystem Spec