You can switch to a supported Java SE version by editing the asenv file as described here.
If you have not already done so, install the new Java SE version on your system.
The Java SE SDK can be downloaded from http://java.sun.com/javase
Stop the Communications Server domains.
Edit the as-install/config/asenv.conf file (asenv.bat on Windows), changing the value for AS_JAVA to point to the new Java home directory:
Edit the as-install/samples/common.properties file, changing the line beginning com.sun.aas.javaRoot... to reference the new Java home directory.
Restart Communications Server.