Do not change the run.sh.
For Linux/Unix the right place will be bin/run.conf which contains such configurations.
You will find a (commented) line #JAVA_HOME=...... there.
Just remove '#' and set the path to your appropriate JAVA.
Thanks Wolf-Dieter..That's was helpful..
Did you mean jboss/bin/run.conf? I did change the jboss/bin/run.conf and uncommented the #JAVA_HOME and se my java there and it works properly for the application running on the jboss..
The other app. works also with the default export JAVA_HOME..
Thank you very much!