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

Reply
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.

Highlighted
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?