You don't want to be editing the run.sh file, it is used to start JBoss. run.conf is the configuration, so if you need to edit the JBoss startup parameters, you want to edit run.conf normally. You shouldnt really need to edit run.sh as it will read run.conf and use the configuration you've set there when starting JBoss.