I am using Java 2 SDK 1.4.0 version. In this, it has built in support for ParameterMetaData. While i am ising ParameterMetaData, I am getting the Following Problem. Please Help me ASAP.
VisualCafe (17:40:15): Error: C:\WINDOWS\Desktop\Component\SessionBean\Dsc1.0\Test.java(39): cannot access java.sql.ParameterMetaData: bad class file: C:\j2sdk1.4.0_01\jre\lib\rt.jar(java/sql/ParameterMetaData.class), class file has wrong version 48.0, should be 47.0. Please remove or make
VisualCafe (17:40:15): Error: C:\WINDOWS\Desktop\Component\SessionBean\Dsc1.0\Test.java(39): sure it appears in the correct subdirectory of the classpath.
I have solved the problem. Still, I am getting problem while i am running the class file. I se the CLASSPATH as
Still, I am getting the following error:
Exception in thread "main" java.lang.AbstractMethodError racle.jdbc.driver.OraclePrepareStatement.getParameterMetaData()Ljava/sql/ParameterMetaData;
My Source Code:
[ Edited by Dave to format code and remove smiley ]
[ June 24, 2002: Message edited by: David O'Meara ]
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
java.lang.AbstractMethodError Thrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.
Try recompiling your class before running it. It appears that it was compiled against one library and is running against a different version.