Ain't I using java -Xmx500m correctly?
On the command line, when I type 搄ava -version?I get
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
when I type 搄ava -Xms32m -Xmx128m?or 搄ava -Xms32m -Xmx500m?I get
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
and I understood the latter to be the way to increase heap space
in order to avoid heap OutOfMemoryError.
What is wrong, why can抰 the JVM take care of this automatically?
I have 2GB of memory in my PC.
[670 byte] By [
hillmia] at [2007-11-27 4:10:41]

# 1
By default the JVM initializes itself with a max memory footprint of 64 megs I believe.
a complete command that should be starting something might look like this...
java -Xmx32m -jar InsertTemplates.jar
You aren't just trying to start the JVM without giving it a JAR or .class file are you?
# 4
.sh files, is that unix? I use XP. can't succeed with linux.
Ya, the -Xmx is there one level down in nonstandard options.
I looked into it a bit, and it抯 kind of sad.
I keep all of my Java code for the classes in one directory.
JCreator retrieves all classes except library imports.
JCreator has a create jar file command,
but it wants to put everything in sight into it.
I would have to study how to make jar files easily.
I don抰 really want to use the successfully avoided project method.
It would be ideal for me to change the default heap space.
I find no place to do that in JCreator or anywhere.