jdk1.6 - Which JDK to compile commons-dbcp-1.2.2 ? (problems with JDK5/6/7) -


When I try to compile with JDK6 / 7, I get this error:

org Apache.commons.dbcp.BasicDataSource is not intangible and does not override the Adobe method in JavaScript (java.lang.Class) java.sql.Wrapper

This is why Because commons-dbcp-1.22 was written before JDK6, at that time, there was no java.sql.Wrapper isWrapperFor method.

So I installed JDK5, but I get such messages (probably due to all Java 7-compiled JARs):

java.lang.UnsupportedClassVersionError: .class file Bad version number

How to solve this problem?

Finally, I'm working to compile commons-dbcp-1.2.2 and here's how I did:

  1. Download the revision 558600 (because someone has written the correct patch for it. It is 1.2.2 with some fixes)

     < Code> Svn checkout -R558600 http: // svn .apache.org / repos / asf / commons / proper / dcpp / trunk commons-dbp    
  2. download () And patch:

      wget https://issues.apache.org/jira/secure/attachment/12362389/patch.txt Patch-P 0 < Patch.txt     

    copy build.properties.sample to build.properties , in the file Download the mentioned jar, and replace it in the proper path.

    Build with OpenJDK7

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -