运行 JAR 文件在 Windows 10

Running JAR files in Windows 10

我在 Windows 7 环境和 Windows 10 环境中拥有 具有管理员权限的相同域用户

java -jar c:\fmw_12.2.1.0.0_wls_quick.jar ORACLE_HOME=C:\weblogic

当我运行上面的命令时,在Win 10中给出了以下错误(但在Win 7中没有)。

Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again.

运行 作为管理员在 Win 10 中工作。但是有没有什么方法可以在 Win 10 中执行此命令,即使登录用户也是管理员,也没有明确地 运行 宁作为管理员?

这只是 windows 中 UAC 级别的问题,并非特定于 win 10。

我可以使用 batch script from this link 在执行 jar 时提示输入管理员权限。