tag:blogger.com,1999:blog-694855878384792308.post7861107331205764206..comments2024-03-15T23:19:22.318-07:00Comments on Java67: Could not create the Java virtual machine Invalid maximum heap size: -Xmxjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-694855878384792308.post-56553557465985040152017-10-30T05:34:58.990-07:002017-10-30T05:34:58.990-07:00Can u plz post a coding to calculate rate of inter...Can u plz post a coding to calculate rate of interest in javaAnonymoushttps://www.blogger.com/profile/17434002744415863409noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-8676220051900742222013-04-12T03:17:59.013-07:002013-04-12T03:17:59.013-07:00We have couple of solutions for the above Problem
...We have couple of solutions for the above Problem<br /><br />Solution 1: You can re-install the all components. ie it means you have install the entire s/w. for the Error: Could not create the Java Virtual Machine.<br /><br />Solution 2: that maximum heap size varies based upon machine architecture e.g. 32 bit or 64 bit, JVM bit size e.g. 32 bit JVM or 64 bit JVM and operating system.<br /><br />In 32 bit machine though theoretical limit of maximum heap size is 4GB, it varies on operating system to operating system e.g. on 32 bit windows XP maximum heap size limits upto 1.5G due to various reason while on 64 bit Solaris machine even with 32 bit JVM you can afford around 3.5GB. So when you run following java command in 32 bit Windows XP machine<br /><br />Solution 3: One more worth noting syntax error while providing heap space is space between numeric literal and unit, as shown in below example: Correct: ~/java java -Xmx1500 M In-correct: ~/java java -Xmx1500MB In-Correct: ~/java java -Xmx 1400M <br /><br />Regards, Ravindra Seelam<br />Anonymousnoreply@blogger.com