Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

calling java program from makefile with Xmx2G argument

843829Jan 16 2007 — edited Jan 25 2007
Hello,

a have makefile with one target, which runs java program.
all:
        java -Xmx2G -cp ./numerika_java/classes/ numeric.fem.vector.ElementVe
ctorStatic
When I run the program with -Xmx2G 'manually' from command line
java -Xmx2G -cp ./numerika_java/classes/ numeric.fem.scalar.ElementScalarStatic
everything works fine.

When I call the make target by make all, I recieved error
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
make: *** [all] Error 1
I have to go down with Xmx memory to approx 1500M, then it runs from make with no error too.

I use linux with standard make.

I'll be thankfull for any suggestions.

Miro
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2007
Added on Jan 16 2007
4 comments
461 views