我创建了一个小程序,我需要一个程序的安装位置。我在 Windows 中使用它。所以我用下面一行写了一个小程序,它给出了安装软件的路径
Process process = Runtime.getRuntime().exec("REG QUERY "+ location +" /v "+ key);
在此之后,我创建了一个 jar 文件,它工作正常。但是,当我使用 jsmooth 包装该 jar 文件并从中创建一个 exe 时,当我运行该 exe 时,上面的行什么也不返回。我不确定为什么会这样,有什么想法吗?
Summary :
Jar is working fine
Same jar if wrapped and become exe does not work.
谢谢