Class not found error and class format Error in OAF Jdeveloper
I had this problem when doing and Extension I tried to copy the class files from server to my machine and tried to compile it. It was giving me Class not found error. After that tried to import the classes it was giving me as class format error as per the below screenshot.
After some hours of time I was able to find the problem as the compiled versions are of latest version but the jdeveloper was taking the old version of java. I resolved by editing the jdev.conf file in Jdev-R12.2.4\jdevbin\jdev\bin and in that I have commented the version of 1.5 and enabled jdk version 1.8 as shown below.
The Jdk version is that I have already installed in my system and not a preinstalled one. The Instance is oracle apps R12.2.4 Instance.
# Directive SetJavaHome is not required by default, except for the base
# install, since the launcher will determine the JAVA_HOME. On Windows
# it looks in ..\..\jdk, on UNIX it looks in the PATH by default.
# SetJavaHome C:\Java\jdk1.5.0_04
#SetJavaHome C:\Program Files (x86)\Java\jdk1.8.0_172