【问题标题】:Starting windows bundle from network-drive use not included JRE?从网络驱动器使用启动 Windows 捆绑包不包括 JRE?
【发布时间】:2018-12-27 12:20:36
【问题描述】:

我使用 install4j 捆绑了一个 java 程序,并将 jre 放入捆绑包中,就像 install4j 一样。

在我们公司,我们遇到的情况是每个用户都必须使用网络共享,例如驱动器 X:在 Windows 上使用 install4j 生成的 EXE 启动 java 程序。

当我们检查 Windows 上的进程资源管理器是否使用了 JRE 时,我们看到使用的是机器的本地 JRE,而不是来自驱动器 X 的 JRE:

有什么经验吗?

【问题讨论】:

  • 您可以从命令行使用参数/create-i4j-log 执行启动程序,以获取包含有关JRE 搜索序列信息的日志文件。

标签: java install4j network-drive


【解决方案1】:

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:\appl\myapps\app\jre\lib\deploy.jar
[9:287] x:\appl\myapps\app\jre\bin\unpack200.exe
[9:288] -r "x:\appl\myapps\app\jre\lib\deploy.jar.pack" "x:\appl\myapps\app\jre\lib\deploy.jar"
[9:300] waiting for unpack200 to finish
[9:383] unpack done
[9:387] could not delete packed file (error 5)
....
**x:\appl\myapps\app has write protection.** 
This happens 18 times for other jar files in the JRE too.
....
[11:25] Unpacking JRE done
[11:27] checkJavaExe (g:\appl\myapps\app\jre\bin\java.exe, [out], 2, 2, 1)
[11:28] file exists
[11:29] tempPath is C:\Users\myuser\AppData\Local\Temp\
[11:30] tempFile is C:\Users\myuser\AppData\Local\Temp\e4j4DF8.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)\Java\jre\bin\java.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?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-08
    • 1970-01-01
    • 1970-01-01
    • 2017-11-01
    • 2014-06-03
    • 2014-02-03
    相关资源
    最近更新 更多