简体   繁体   English

Windows 10 上的 InstallAnywhere 2018 问题

[英]InstallAnywhere 2018 issues on Windows 10

I'm trying to install the product InstallAnywhere2018 on Windows 10 and after several attempts including compatibility modes, running as admin and checking my system path for the Java variables I still get the same error:我正在尝试在 Windows 10 上安装产品 InstallAnywhere2018,经过多次尝试(包括兼容模式)、以管理员身份运行并检查 Java 变量的系统路径后,我仍然遇到相同的错误:

在此处输入图像描述

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Unknown Source)
at sun.awt.windows.TranslucentWindowPainter.updateWindow(Unknown Source)
at sun.awt.windows.WWindowPeer.updateWindow(Unknown Source)
at sun.awt.windows.WWindowPeer.show(Unknown Source)
at sun.awt.windows.WComponentPeer.setVisible(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at Flexeraat0.setVisible(Unknown Source)
at Flexeraat0.aj(Unknown Source)
at com.zerog.ia.installer.AAMgr.a0(Unknown Source)
at com.zerog.ia.installer.AAMgr.ac(Unknown Source)
at com.zerog.ia.installer.AAMgrBase.runPreInstall(Unknown Source)
at com.zerog.ia.installer.AAMgr.runPreInstall(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.b0(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.a5(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)

Any ideas of how to solve this issue?关于如何解决这个问题的任何想法?

Thanks.谢谢。

Setup JAVA_OPTS as a system variable with the following content, the heap size you want. 将JAVA_OPTS设置为具有以下内容的系统变量,即所需的堆大小。 Java should be able to find it and act accordingly : Java应该能够找到它并采取相应的行动:

JAVA_OPTS="-Xms1G -Xmx2G"

After that in a command prompt run the following commands: 之后,在命令提示符下运行以下命令:

SET JAVA_OPTS="-Xms1G -Xmx2G"

This can be explained as follows: 这可以解释如下:

  • allocate at minimum 1GBs of heap 分配至少1GB的堆
  • allocate at maximum 2GBs of heap 分配最多2GB的堆

Once it crashes you need to find ISTPv2Setup.lax file in your C:\Users\[your_username]\AppData\Local\Temp\I[a_lot_of_numbers_here]\Windows .一旦崩溃,您需要在C:\Users\[your_username]\AppData\Local\Temp\I[a_lot_of_numbers_here]\Windows中找到ISTPv2Setup.lax文件。 And replace the last line in the ISTPv2Setup.lax file being this:并将 ISTPv2Setup.lax 文件中的最后一行替换为:

lax.nl.java.option.additional=

with this:有了这个:

lax.nl.java.option.additional=-Xms1g -Xmx2g

This also works when getting a stack trace like this:这在获取这样的堆栈跟踪时也有效:

java.lang.NullPointerException
    at com.zerog.ia.installer.AAMgr.initAAMgr(Unknown Source)
    at com.zerog.ia.installer.LifeCycleManager.a6(Unknown Source)
    at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
    at com.zerog.ia.installer.Main.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.zerog.lax.LAX.launch(Unknown Source)
    at com.zerog.lax.LAX.main(Unknown Source)

The real exception is in C:\Users\[your_username]\AppData\Local\Temp\lax-[a_lot_of_numers]-err.tmp .真正的例外是C:\Users\[your_username]\AppData\Local\Temp\lax-[a_lot_of_numers]-err.tmp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM