Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Developer
Posts: 14
Registered: ‎02-12-2009
My Device: Not Specified

[rapc] Fatal Internal error: java.lang.OutOfMemoryError: Java heap space

i am using ANT + ECLIPSE 3.4.1

 

I am building bouncy castle into app (j2me version), and am running into this error when compiling

 

does this mean I need to increase the heap size of the <rapc> command?  if so, how do I do that?

 

-phil

New Developer
Posts: 14
Registered: ‎02-12-2009
My Device: Not Specified

Re: [rapc] Fatal Internal error: java.lang.OutOfMemoryError: Java heap space

I guess if I had a command line, I could do something like -Xmx512m to increase the heap storage, but I don't know how to do that within ant.

 

I have tried rebooting my computer - doesn't help. 

Developer
Developer
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: [rapc] Fatal Internal error: java.lang.OutOfMemoryError: Java heap space

If you're using rapc to both compile and link, you may want to try using javac directly to compile, then use rapc to link into cod files.  This way you have more control over the compiler command line.

 

Developer
Posts: 132
Registered: ‎02-11-2009
My Device: Not Specified

Re: [rapc] Fatal Internal error: java.lang.OutOfMemoryError: Java heap space

Doing your own build targets in ant? Sounds painful.

Check out http://bb-ant-tools.sourceforge.net/

 

Cheers, Barak.

New Member
Posts: 1
Registered: ‎01-27-2014
My Device: Developer
My Carrier: Developer

Re: [rapc] Fatal Internal error: java.lang.OutOfMemoryError: Java heap space

I am using this usuful tool but I have the same problem. 

 

[rapc] java.lang.OutOfMemoryError: Java heap space
[rapc] at net.rim.tools.compiler.f.j.a(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.a(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.compile(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.main(Unknown Source)

 

Is there a way to increase the heap space?