UAC and Java

后端 未结 5 933
渐次进展
渐次进展 2020-12-10 12:18

Is it possible to ask for elevated permissions from within a Java Application? Suggestions I\'ve seen seem to all be centered around running an external executable or setti

5条回答
  •  萌比男神i
    2020-12-10 12:47

    Looks like Sun will have to handle that kind of situation in the JRE since there's no other way of doing elevated actions than by running an external process.

    If JRE supported it, JVM would probably have to run a separate, elevated process for the java code requesting the elevation.

    For now however, only the manifest or running an external application are the only solutions available as far as I know.

    The question is, what do you need elevation for?

提交回复
热议问题