my dog learned polymorphism*
The moose likes Applets and the fly likes plugin, vista, heap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "plugin, vista, heap" Watch "plugin, vista, heap" New topic
Author

plugin, vista, heap

Lou Caudell
Ranch Hand

Joined: Oct 06, 2001
Posts: 32
I have just ran an applet via plugin html from Vista with no apparent issue.
The jdk is 1.6.01. However, when running in XP it is necessary to raise the heap parameter in the deployment.properties to Xmx256m. My question is, how would you do this in Vista. Also, isn't there an api to set the heap parameter in the individual applets code?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
I'm not sure what "deployment.properties" is or where you'd use it, but if it works in XP, can't it work in Vista?

There's nothing in the API for this, because once the JVM is up and running, those parameters can't be changed any more.

Normally, these can be set in the Java Plugin control panel, but after changing them you'd need to restart the browser. That may not be a realistic thing to ask of your users.


Ping & DNS - my free Android networking tools app
Lou Caudell
Ranch Hand

Joined: Oct 06, 2001
Posts: 32
Ok, this file resides in
\documents and Settings\(user)\ApplicationData\
Sun\Java\Deployment\deployment.properties
On an XP system. The heap size instruction is added to the property for plugins. "deployment.javapi.jre.1.6.0_01.args=-Xmx256m"
FYI: there is no "\documents and settings" dir on any Vista installation I've seen thus far. Its now "\user". WOOPS: did I get that slash wrong....just joking Linus.
To set the heap size for an applet. Change the value for the jre/jdk in the control panel java->java tab->view button->java runtime parameter. I am not aware of this plugin control panel you speak of. Please tell me where it's at. I have yet to see a deployment.properties file in Vista, so how does one set the heap size....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
If the Java Plugin gets installed on a Windows machine, part of it is a control panel; have a look through the one son your machine and you should find it. It's also accessible from the Java icon in the icon tray, but I think that can be turned off so you may not have.
Lou Caudell
Ranch Hand

Joined: Oct 06, 2001
Posts: 32
That's the console on my machine, which contains a link to the control panel also available via settings in XP. Those parameters pertain to calling an applet in the traditional method, not a plugin, per my documentation. If the case with Vista, is that both are set via the control panel, then Sun is not doing a very good job of stating it clearly.

The applet/app which I am running does not appear the same when running via traditional applet html tags and plugin (object, embed) tags.
 
 
subject: plugin, vista, heap