Tuesday, August 13, 2013

Changing Applet JVM Options

Recently I faced with problems when trying to change applet JVM options. First of all, currently there are some bugs related to Java 7 JRE . Here is the links to get more information about these bugs:
  • http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8019275
  • http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8015078
Simply saying that in these JRE versions, updating JVM options doesn't work. I installed 1.6.0_33 JRE to try.

Here is the simply easy way to update applets JVM properties: (Using Windows 7)
  • Close all browsers
  • Open deployment.properties file (C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\deployment.properties)
  • Delete cache folder content (C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache)
  • Add the following line to the deployment.properties:
    • deployment.javaws.jre.0.args=-Xms1024M -Xmx1024M -Djava.compiler\=NONE -Xnoagent -Xdebug -Xrunjdwp\:transport\=dt_socket,address\=8000,server\=y,suspend\=n
"0" means that it is my first JRE listed in Java Console.

That is it!

I hope to save time many of you!

No comments: