Subject | UnsupportedClassVersionError: Bad version number in .class file |
---|---|
Author | judlian23 |
Post date | 2008-11-05T22:17:38Z |
Hi all,
I have yet another problem. I am using Jaybird2.1.6 and firebird
embedded 2.1.1 on linux and java 1.6.0_05.
I am getting this problem before the application reaches any real
code. It's stuck on loading the driver, it seems. The obvious thing
is that I may be using a newer than supported or older than supported
version. If so, I'm wondering if anyone's run into the same problem
and what to do.
Any help is always appreciated.
Thanks,
Julian
private void loadDriver() {
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
} catch (ClassNotFoundException ex) {
...
}
}
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Main.loadDriver(Main.java:56)
at Main.main(Main.java:227)
I have yet another problem. I am using Jaybird2.1.6 and firebird
embedded 2.1.1 on linux and java 1.6.0_05.
I am getting this problem before the application reaches any real
code. It's stuck on loading the driver, it seems. The obvious thing
is that I may be using a newer than supported or older than supported
version. If so, I'm wondering if anyone's run into the same problem
and what to do.
Any help is always appreciated.
Thanks,
Julian
private void loadDriver() {
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
} catch (ClassNotFoundException ex) {
...
}
}
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Main.loadDriver(Main.java:56)
at Main.main(Main.java:227)