I start an Apache HTTP server within my Java program. Unfortunately, I cannot stop the server from the program through the "httpd.exe -k stop" command. The error message is "(OS 5)Access is denied. : Failed to open the Apache2.2 Service". My OS is Windows 7. How can I stop the server from my Java program? (Stopping manually the server is not an option.)
UPDATE: I cannot change the Windows permissions.