Bookmark Topic Watch Topic
  • New Topic

How to increase heap space  RSS feed

 
Pradip Padwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Friends,
I want to increase the Heap Space for my application.I have tried the following two options.It doesn't work after creating the Jar file.
-------------------------------------------------------------------
1] Process p = Runtime.getRuntime().exec("java -Xms32m -Xmx1024m WelCome");

I have written one class naming as StarrApp which contains the above Statement.I have added this(StratApp) class name in the Manifest file.But it does not work while creating jar.It don't get the WelCome file.Can you tell me how to use the WelCome class file within the Jar file in the above statement.
-------------------------------------------------------------------
2] Desktop desk=Desktop.getDesktop();
desk.open(new File("Test.bat"));

I have written above two statement in the StartApp.

Test.bat file contains the follwing statement.
java -Xms32m -Xmx1024m WelCome

After creating the jar file it doesn't work.

But it is also not working .
-------------------------------------------------------------------
Please let know the Solution ASAP.

Thanks and Regards,
Pradip
padwal_pradip@yahoo.com
pradip_padwal_coep@yahoo.com
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
CarefullyChooseOneForum
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!