You must have modified run.sh because the run.sh and run.conf files shipped with JBoss AS 4.2.0 do not use that environment variable.
Usually, to add system properties, you edit run.conf and add another line to set JAVA_OPTS, or add them to and existing JAVA_OPTS line.