Windows 10上的InstallAnywhere 2018问题

时间:2019-03-21 10:45:04

标签: java windows-10 installanywhere

我正在尝试在Windows 10上安装产品InstallAnywhere2018,并在尝试了多种模式(包括兼容模式),以管理员身份运行并检查系统路径中的Java变量后,我仍然遇到相同的错误:

enter image description here

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)

关于如何解决此问题的任何想法?

谢谢。

1 个答案:

答案 0 :(得分:0)

将JAVA_OPTS设置为具有以下内容的系统变量,即所需的堆大小。 Java应该能够找到并采取相应措施:

JAVA_OPTS="-Xms1G -Xmx2G"

之后,在命令提示符下运行以下命令:

SET JAVA_OPTS="-Xms1G -Xmx2G"

这可以解释如下:

  • 分配至少1GB的堆
  • 最多分配2GB的堆