java getRuntime().exec an exe that requires UAC
问题 So we have a java process that runs as a windows service. It needs to execute a command with Runtime.getRuntime().exec(command) . The command it executes requires UAC. This is on windows server 2008 and sounds like you cannot disable UAC for a single executable so is there any other way to make this work? 回答1: If your Java application runs as a windows service, it most likely runs under one of the system accounts: SYSTEM (most probable), LOCAL SERVICE, or NETWORK SERVICE. Thus if the service