Bug #35829 | build.xml check for java6 should use or instead of and | ||
---|---|---|---|
Submitted: | 4 Apr 2008 13:26 | Modified: | 5 Jun 2014 20:13 |
Reporter: | Petteri Räty | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.6 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[4 Apr 2008 13:26]
Petteri Räty
[4 Apr 2008 13:27]
Petteri Räty
use or instead of and in build.xml
Attachment: java6-detection.patch (application/octet-stream, text), 627 bytes.
[10 Apr 2008 7:01]
Tonci Grgin
Hi Petteri and thanks for your report. This is a known problem we've been forced to introduce ourselves... Anyway, I'm setting this to verified and Mark will decide whether this will be fixed or just needs better documentation.
[18 Apr 2013 8:15]
Alexander Soklakov
Connector/J documentation contains instructions for building driver from surces http://dev.mysql.com/doc/refman/5.6/en/connector-j-installing-source.html with mentioning requirements of having both 1.5 and 1.6 jdks. Variables reported here are also documented: " To build Connector/J 5.1, edit the build.xml to reflect the location of your JDK 1.6.x installation. The lines to change are: <property name="com.mysql.jdbc.java6.javac" value="C:\jvms\jdk1.6.0\bin\javac.exe" /> <property name="com.mysql.jdbc.java6.rtjar" value="C:\jvms\jdk1.6.0\jre\lib\rt.jar" /> Alternatively, you can set the value of these property names through the Ant -D option." I guess we may close this report as "Won't fix" because we don't plan to change c/J 5.1 build' requirements.
[29 May 2014 16:16]
Filipe Silva
The reported situation was verified.
[5 Jun 2014 20:13]
Daniel So
Added the following entry in the Connector/J 5.3.12 changelog: "The Ant script for building Connector/J from source failed to check the availability of javac and rt.jar from JDK 1.6 before compilation. That caused compilation to fail when the two files weren't available. This fix corrects the step in the build script that checks for those files before compilation."