I am attempting to connect to an MSSQL 2012 database via jtds-1.3.0.
I had already installed the JDBC service program that SK had posted on his site.
I installed jtds-1.3.0.jar into folder /java/jdbc & have my classpath set accordingly.
I kept getting error message "(net/sourceforge/jtds/jdbc/Driver) bad major version at offset=6" after the JVM started. The system wide default is jdk60 32-bit.
After googling the error message, it appears that this error indicates that your projects were compiled with a higher level Java compiler than the runtime can support.
So I logged off, logged back on, set my JVM to be jdk70 32-bit, and tried to run my sample program. Sure enough, that error didn't crop up (although I got other errors pertaining to SSO).
I don't know if I feel comfortable changing my system-wide JDK from 1.6 to 1.7 at this point, and would rather not need to change the JAVA_HOME variable at program execution.
Does anyone know if JTDS-1.3.0 can be compiled at level 1.6 (and if so, does anyone have a version that you could send me)?
If not, do you know if any other versions of JTDS are compatible with MSSQL 2012 (and are compiled to work under JDK1.6)?
Thanks
I had already installed the JDBC service program that SK had posted on his site.
I installed jtds-1.3.0.jar into folder /java/jdbc & have my classpath set accordingly.
I kept getting error message "(net/sourceforge/jtds/jdbc/Driver) bad major version at offset=6" after the JVM started. The system wide default is jdk60 32-bit.
After googling the error message, it appears that this error indicates that your projects were compiled with a higher level Java compiler than the runtime can support.
So I logged off, logged back on, set my JVM to be jdk70 32-bit, and tried to run my sample program. Sure enough, that error didn't crop up (although I got other errors pertaining to SSO).
I don't know if I feel comfortable changing my system-wide JDK from 1.6 to 1.7 at this point, and would rather not need to change the JAVA_HOME variable at program execution.
Does anyone know if JTDS-1.3.0 can be compiled at level 1.6 (and if so, does anyone have a version that you could send me)?
If not, do you know if any other versions of JTDS are compatible with MSSQL 2012 (and are compiled to work under JDK1.6)?
Thanks
Comment