This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Campbell Ritchie wrote:If 49.0 is Java5, you must have compiled it with a Java6 compiler and are running the code on a Java5 JVM.
I think you mean that the compiler must have been Java 5 and the JVM is Java 1.4. The class version in the .class file is 49.0 - Java 5.
Actually, Oracle Client was installed on my machine, that time oracle jvm 1.4 was set in the path. This was the root of the problem.
So now i have removed that path of oracle jvm 1.4 from PATH environ var, And the error has gone...