0

我正在尝试在 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)

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

谢谢。

4

1 回答 1

-1

将 JAVA_OPTS 设置为具有以下内容的系统变量,即您想要的堆大小。Java 应该能够找到它并采取相应的行动:

JAVA_OPTS="-Xms1G -Xmx2G"

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

SET JAVA_OPTS="-Xms1G -Xmx2G"

这可以解释如下:

  • 分配至少 1GB 的堆
  • 最多分配 2GB 的堆
于 2019-03-21T10:51:52.757 回答