<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>java.lang.OutOfMemoryError: Java heap space while compile</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=96657" />
  <subtitle>java.lang.OutOfMemoryError: Java heap space while compile</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=96657</id>
  <updated>2026-05-31T09:49:37Z</updated>
  <dc:date>2026-05-31T09:49:37Z</dc:date>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=475572" />
    <author>
      <name>JR Houn</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=475572</id>
    <updated>2008-02-12T17:59:01Z</updated>
    <published>2008-02-12T17:59:01Z</published>
    <summary type="html">This may be a repetitive question for you, but, have you set your ANT_OPTS system variable? Follow the directions on this wiki article if you haven&amp;#39;t, and that should solve your out of memory compiling problems:&lt;br /&gt;http://wiki.liferay.com/index.php/Ant_opts&lt;br /&gt;jr</summary>
    <dc:creator>JR Houn</dc:creator>
    <dc:date>2008-02-12T17:59:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=474154" />
    <author>
      <name>Subhas Sahoo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=474154</id>
    <updated>2008-02-12T10:27:14Z</updated>
    <published>2008-02-12T10:27:14Z</published>
    <summary type="html">Hi There,&lt;br /&gt;I am facing issue in compilation. I have changed to javac.compiler=modern in build. Properties file I am using Liferay Source code 4.4.1 Please let me know.&lt;br /&gt;I have searched the forum for the same and unable to mark it properly &lt;br /&gt;&lt;br /&gt;    [javac] The system is out of resources.&lt;br /&gt;    [javac] Consult the following stack trace for details.&lt;br /&gt;    [javac] java.lang.OutOfMemoryError: Java heap space&lt;br /&gt;&lt;br /&gt;BUILD FAILED&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank You!</summary>
    <dc:creator>Subhas Sahoo</dc:creator>
    <dc:date>2008-02-12T10:27:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96669" />
    <author>
      <name>Raji Abraham</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96669</id>
    <updated>2007-02-11T16:11:36Z</updated>
    <published>2007-02-11T16:11:36Z</published>
    <summary type="html">I was getting errors when using the jikes compiler. So I switched to Sun&amp;#39;s compiler and was successful, though it took a while to compile. I changed the following in build.properties:&lt;br /&gt;&lt;br /&gt;javac.compiler=modern&lt;br /&gt;javac.fork=true&lt;br /&gt;&lt;br /&gt;Without the fork=true I too got the OutOfMemoryError.</summary>
    <dc:creator>Raji Abraham</dc:creator>
    <dc:date>2007-02-11T16:11:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96667" />
    <author>
      <name>Meyotte Jerome</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96667</id>
    <updated>2007-02-05T17:36:31Z</updated>
    <published>2007-02-05T17:36:31Z</published>
    <summary type="html">Hello,&lt;br /&gt;I still have no answer on my problem.&lt;br /&gt;May be it is because I use javac instead of jikes? or is it my machine that is not enough strong?</summary>
    <dc:creator>Meyotte Jerome</dc:creator>
    <dc:date>2007-02-05T17:36:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96665" />
    <author>
      <name>Meyotte Jerome</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96665</id>
    <updated>2007-01-05T16:10:41Z</updated>
    <published>2007-01-05T16:10:41Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Jerry Niu:&lt;/div&gt;&lt;blockquote&gt;Check out this posting and see if it helps.&lt;br /&gt;&lt;a href="http://www.liferay.com/web/guest/community/forums/message_boards/message/94308"&gt;http://www.liferay.com/web/guest/community/forums/message_boards/message/94308&lt;/a&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thanks. But I&amp;#39;ve already take some time on different posts on the forum and on the LEP. But I could not find the same problem.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried to :&lt;br /&gt;- configure my JVM parameters (maximum memory : 512Mo)&lt;br /&gt;- to launch 2 &amp;#34;start&amp;#34; (ant clean start start build-ext)&lt;br /&gt;&lt;br /&gt;but none could resolve my problem.</summary>
    <dc:creator>Meyotte Jerome</dc:creator>
    <dc:date>2007-01-05T16:10:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96663" />
    <author>
      <name>Jerry Niu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96663</id>
    <updated>2007-01-04T21:22:24Z</updated>
    <published>2007-01-04T21:22:24Z</published>
    <summary type="html">Check out this posting and see if it helps.&lt;br /&gt;&lt;a href="http://www.liferay.com/web/guest/community/forums/message_boards/message/94308"&gt;http://www.liferay.com/web/guest/community/forums/message_boards/message/94308&lt;/a&gt;</summary>
    <dc:creator>Jerry Niu</dc:creator>
    <dc:date>2007-01-04T21:22:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96661" />
    <author>
      <name>Meyotte Jerome</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96661</id>
    <updated>2007-01-04T10:32:47Z</updated>
    <published>2007-01-04T10:32:47Z</published>
    <summary type="html">any answers?</summary>
    <dc:creator>Meyotte Jerome</dc:creator>
    <dc:date>2007-01-04T10:32:47Z</dc:date>
  </entry>
  <entry>
    <title>java.lang.OutOfMemoryError: Java heap space while compile</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96656" />
    <author>
      <name>Meyotte Jerome</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=96656</id>
    <updated>2006-12-28T17:20:13Z</updated>
    <published>2006-12-28T17:20:13Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;I try to compile LR 4.2.0 via ANT on Eclipse.&lt;br&gt;I followed the instruction at this page http://content.liferay.com/4.0.0/docs/quickstart/ch04s01.html&lt;br&gt;But when I want to do this : ant clean start build-ext I got this error on ANT console, after launching "start"&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;build-common-java.compile:
    [javac] Compiling 1695 source files to D:\workspace\projetLR\liferay\portal\portal-ejb\classes
    [javac] Since fork is false, ignoring memoryMaximumSize setting.
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space

BUILD FAILED
D:\workspace\projetLR\liferay\portal\build.xml:15: The following error occurred while executing this line:
D:\workspace\projetLR\liferay\portal\build.xml:171: The following error occurred while executing this line:
D:\workspace\projetLR\liferay\portal\portal-ejb\build.xml:11: The following error occurred while executing this line:
D:\workspace\projetLR\liferay\portal\build-common-java.xml:28: Compile failed; see the compiler error output for details.

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;thanks for help.&lt;br&gt;Jerome.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Meyotte Jerome</dc:creator>
    <dc:date>2006-12-28T17:20:13Z</dc:date>
  </entry>
</feed>
