Find out if you java application was compiled with Java 1.6 on solaris
For class file version 50.0 (Java 1.6), the opening bytes are:
CA FE BA BE 00 00 00 32
Check if your class file was compiled with java 1.6
bash-3.00$ od -x JDBCVersion.class | head
0000000 cafe babe 0000 0032 009c 0a00 2f00 4007
tip:
EAR and JAR files are just zip files an can be unzipte with
unzip