Check your JAVA path.
I suppose you use a Java5 and AS7 is compiled with Java6.
If you build it yourselve ensure that you use a runtime Java version which is equal or greater that the compiler version.
You can set the runtimer JAva path in the bin/standalone.conf (or with .bat for Windows).
remove the '#' in the #JAVA_HOME line and set the path to the required JAVA.
First of all thanks for your reply. I would like to ask you again for some help because I am really confused with the java editions and updates for MAC computers. My java version is 1.5.0_30. Do you know which is the appropriate update to upgrade to 1.6 ?
Java 6 on the Mac is only available on OS X versions 10.5 (64 bit intel CPUs only), 10.6 and 10.7