| Bug #55333 | Error with JVM 1.4 | ||
|---|---|---|---|
| Submitted: | 17 Jul 2010 14:06 | Modified: | 22 Jul 2010 12:59 |
| Reporter: | William Chiquito | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S2 (Serious) |
| Version: | 5.1.13 | OS: | Windows |
| Assigned to: | Tony Bedford | CPU Architecture: | Any |
| Tags: | Connector/J, JVM 1.4 | ||
[20 Jul 2010 9:19]
Tonci Grgin
Hi William and thanks for your report. I do not know where this 49.xxx comes from. Our build.xml shows: <property name="major_version" value="5"/> <property name="minor_version" value="1"/> <property name="subminor_version" value="13"/> <property name="version_status" value=""/> so I presume who ever built this for you messed things up or this is not coming from c/J at all.
[20 Jul 2010 12:58]
William Chiquito
The file "MANIFEST.MF" version 5.1.12 see the following: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 1.4.2-B28 (Sun Microsystems Inc.) Built-By: mysqldev Bundle-Vendor Sun Microsystems Inc. Bundle-Classpath:. Bundle-Version: 5.1.1912 In version 5.1.13 see the following: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.) Built-By: mysqldev Bundle-Vendor Sun Microsystems Inc. Bundle-Classpath:. Bundle-Version: 5.1.1913 You may like is compiled with a higher version of the VM so have a problem when running in a lower version.
[20 Jul 2010 13:10]
Tonci Grgin
William, true, we are building c/J 5.1 with JDK 1.5. As even JDK 1.5 is EOL-ed we will not fix this. Tony, please add a note in manual that we do not support JDK 1.4 any more.
[20 Jul 2010 13:24]
William Chiquito
I'll have to use the Connector/J up to version 1.5.12 on my applications that are using the JDK 4. Thanks Tonci.
[22 Jul 2010 12:59]
Tony Bedford
Docs updated to reflect that JRE/JDK 1.4.x no longer supported for C/J 5.1.

Description: I'm using Apache Tomcat/4.1.39 with JDK 1.4.2_18 and the driver (Connector/J 5.1.13) trying to load fails. How to repeat: "page.jsp": ... Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost/test","user", "password"); ... Error: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' java.lang.UnsupportedClassVersionError: com/mysql/jdbc/Driver (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) ...