我使用 install4j
捆绑了一个 java 程序,并将 jre 放入捆绑包中,就像使用 install4j 一样。
在我们公司,我们遇到的情况是,每个用户都必须使用网络共享,例如驱动器X:在Windows上,他们使用install4j生成的EXE启动java程序。
当我们在 Windows 上使用进程资源管理器检查是否使用 JRE 时,我们看到使用的是机器的本地 JRE,而不是驱动器 X 中的 JRE:
有经验吗?
Thx!
I check this with your cmd argument and get errors.
[9:280] unpack done
[9:285] could not delete packed file (error 5)
[9:286] checking x:applmyappsappjrelibdeploy.jar
[9:287] x:applmyappsappjrebinunpack200.exe
[9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
[9:300] waiting for unpack200 to finish
[9:383] unpack done
[9:387] could not delete packed file (error 5)
....
**x:applmyappsapp has write protection.**
This happens 18 times for other jar files in the JRE too.
....
[11:25] Unpacking JRE done
[11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
[11:28] file exists
[11:29] tempPath is C:UsersmyuserAppDataLocalTemp
[11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
[11:672] Exit Code 1
[11:674] couldn't get version
[11:675] checkJavaExe returning 0
[11:677] Testing location (type Y)
[11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
[11:679] file exists
...starting from now I see that the local JRE is used...
Why happen this? Write protection? Wrong install4j config?