In this demo we are using JDeveloper 11.1.1.3 and an Oracle 11g 11.2.0.1 RDBMS.
The JVM in a Oracle 11g database is version 1.5 which means we must compile/create our class in either JDK 1.4 or JDK 1.5
Solution
Steps
Change project J2SE version to JDK 1.5. You can't use default 1.6 as the Oracle JVM in the database is not a 1.6 JVM, it's a 1.5 JVM.