Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to increase heap space

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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