JRE version mismatch

Here is the error:

cannot access oracle.jdbc.OracleTypes bad class file: C:\bea\wlserver_10.3\server\lib\ojdbc6.jar(oracle/jdbc/OracleTypes.class)

class file has wrong version 50.0, should be 49.0


Again, this is a Java version mismatch.

ojdbc6.jar is compiled using JDK6, while Eclipse has Java 1.5 as the execution environment. Change Eclipse's JRE should do it.