Click to See Complete Forum and Search --> : Heap Space Full and some more queries


Jack Sparrow
February 27th, 2006, 04:20 PM
Hi,

I'm pretty much of a newbie to Java,in the sense I've just about finished learning all the programming theory and now is the time I need to practise to get a feel of it(I used to do C++ till now). My friends and I was working on this little program that needs to process a 6x6 matrix. Now as soon as the application crosses 3MB of memory space(I checked in Win task manager) we get an error saying something about the app being out for heap space.

Maybe this is because we are just compiling the java file and running it as a console app( javac xxx.java then java xxx)? Does the JVM have a say in the mem usage of an app? Is there any way to work past this little problem besides altering our code so that mem usage remains minimal?

Right now we are using JCreatorPro as our IDE, I'd be happy to hear about any better ones from your own experience!

And while this isn't exactly a Java query...I was thinking of developing a User Interface for an app which will have Java running as a back end. Trouble is I don't know s***t about developing UIs! Could anyone give any suggesions?

Thanks a lot for your time

RoboTact
February 27th, 2006, 07:52 PM
What's your version of Java? Default limit of current versions is about 32-64Mb. Try running with java. You may actually specify key like -Xmx100M (set limit to 100Mb)

dlorde
February 28th, 2006, 05:31 AM
Right now we are using JCreatorPro as our IDE, I'd be happy to hear about any better ones from your own experience!IntelliJ IDEA (http://www.jetbrains.com/idea/) is generally thought to be the best commercial Java IDE, Eclipse (http://www.eclipse.org/) is probably the most popular free IDE that supports Java development. Sun's free Netbeans (http://www.netbeans.org/) IDE is fairly popular, but lags behind the other two in some ways.

Although Eclipse is very similar in functionality to IDEA, many professional developers feel it is worth shelling out for the usability of IDEA.

To some extent, it depends on what kind of development you aim to do. It's worth looking at the features of each IDE and trying them out.

If I had eight hours to chop down a tree, I would spend 6 hours sharpening an axe...
Anon.