windward-studios / ikvm8

Other
173 stars 36 forks source link

Error occurred during initialization of VM, Could not reserve enough space for 1572864KB object heap #9

Open yhj200722 opened 5 years ago

yhj200722 commented 5 years ago

I downloaded this repository, read the building doc here and ikvm site at https://sourceforge.net/p/ikvm/wiki/Building/, when I building it, Error occurred, log output is here:

[nant] E:\projects\ikvm8-master\openjdk\openjdk.build Buildfile: file:///E:/projects/ikvm8-master/openjdk/openjdk.build Target framework: Microsoft .NET Framework 4.0 Target(s) specified: all

        Function platform::is-win32 is deprecated.  Use the is-windows function instead.
        Function platform::is-win32 is deprecated.  Use the is-windows function instead.

        clean-classes:

        clean-stubjars:

        System.Core:

        stubjars:

             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(132,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(133,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(134,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(138,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(139,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(140,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.

        allsources.gen.lst:

             [copy] Copying 1 file to 'E:\projects\ikvm8-master\openjdk\allsources.gen.lst'.

        runtime-identity:

        version:

        copyright:

             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(48,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.

        AssemblyInfo.java:

             [copy] Copying 1 file to 'E:\projects\ikvm8-master\openjdk\AssemblyInfo.java'.

        PropertyConstants.java:

             [copy] Copying 1 file to 'E:\projects\ikvm8-master\openjdk\java\lang\PropertyConstants.java'.

        classes:

             [exec] E:\projects\ikvm8-master\openjdk\openjdk.build(179,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated.  Use the managed attribute and Managed property instead.
             [exec] Error occurred during initialization of VM
             [exec] Could not reserve enough space for 1572864KB object heap

        BUILD FAILED - 0 non-fatal error(s), 10 warning(s)

        E:\projects\ikvm8-master\openjdk\openjdk.build(179,10):
        External Program Failed: javac (return code was 1)

        Total time: 23 seconds.

BUILD FAILED - 0 non-fatal error(s), 1 warning(s)

Nested build failed. Refer to build log for exact reason.

Total time: 30.5 seconds.

Draspax commented 5 years ago

Are you this running on win32 machine. Could be this issue: https://stackoverflow.com/a/12043269/2495874

You could try lowering the Xmx value in openjdk.build to see if that works.