Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8271371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:49:24+00:00 2026-06-08T06:49:24+00:00

When I try to compile commons-dbcp-1.2.2 with JDK6/7 I get this error: org.apache.commons.dbcp.BasicDataSource is

  • 0

When I try to compile commons-dbcp-1.2.2 with JDK6/7 I get this error:

org.apache.commons.dbcp.BasicDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper

This is because commons-dbcp-1.2.2 was written before JDK6, at a time where java.sql.Wrapper did not have an isWrapperFor method.

So I installed JDK5, but I get such messages (probably because of all the Java7-compiled JARs):

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

How to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:49:26+00:00Added an answer on June 8, 2026 at 6:49 am

    I finally managed to compile commons-dbcp-1.2.2 and here is how I did:

    1. Download revision 558600 (because someone wrote the right patch for it. It is pretty much 1.2.2 with a few fixes)

      svn checkout -r 558600 http://svn.apache.org/repos/asf/commons/proper/dbcp/trunk commons-dbcp
      
    2. Download this patch (explanation of the patch) and patch:

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

    Copy build.properties.sample to build.properties, download the jars described in the file, and change to appropriate paths.

    Build with OpenJDK 7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try compile with maven 3.0.4, Eclipse give me this error: Failed to
When I try to compile Gforth 0.7.0, I get the following error: $ ./configure
I'd like to try org.apache.commons.lang.StringUtils in my Android project. I have downloaded commons-lang3-3.1.jar and
When I try to compile the piece of code below, I get this warning:
When I try to compile my program on ubuntu using gcc, i get these
When I try to compile this code: struct BasicVertexProperties { Vect3Df position; }; struct
When I try to compile TOSSIM in tiny OS v-2.0.2 , this is the
When I try to compile this: import java.awt.* ; class obj { public static
Does anyone know what The C compiler cl is not able to compile a
I have: ubuntu-9.10-desktop-amd64 + NetBeans6.7.1 I just downloaded Commons HttpClient 3.1 (legacy) from http://hc.apache.org/downloads.cgi

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.