Question Locked

access denied trying to create windows service in vista

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to create a windows service using the javaservice.exe from sourceforge.net, but I keep receiving an 'Access is Denied' error. I know the syntax I am using for the command line is correct as I have done this on windows xp before, so I believe it has something to do with permissions set within Vista. Any help is greatly appreciated.

4 replies

by p.j.hutchison

The command shell works slightly differently in Vista. By default when you run cmd.exe, it does not give administrator rights. To get round it, create a shortcut to cmd.exe on desktop, open Properties, Compatibility tab and tick box for Administrator rights. Then you can do admin stuff on cmd line.

by mkvancz

This sounds exactly like what the problem is, however when I go to the compatability tab, the entire thing is greyed out with the text 'Compatability modes cannot be set on this program because it is part of this version of Windows'. Any ideas?

This discussion is closed to new replies.