• Post Reply 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

JVM Memory

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys,
i have a java applet running on client side whose purpose is to display images. The images sometimes can be large in size, so i need to increment the size of jvm on the client side, but i need to do this programmatically(without user's intervention). One idea i had was trying to manipulate the deployment.properties file found under <USER_HOME>\Application Data\Sun\Java\Deployment, and i tried using System.getProperty("user.home") to reach for the <USER_HOME>, this ran perfectly well on jbuilder (using the applet viewer), but when trying to run the applet on IE6.0, the applet was forbidden from geting the "user.home" property.
My question is that is there a way to get the user home dir of the user some other way in order to modify this file?
if not, how do you suggest i change the memory for the jvm programmatically?
thanks,
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once the JVM is up and running, you can't change its memory allocation.

To get at the user.home property the applet either needs to be signed, or a local policy file must be adapted. More info can be found in the Applets FAQ, linked in my signature.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic