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 7830921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:28:33+00:00 2026-06-02T11:28:33+00:00

I have a semester long project that I have been working on in Android

  • 0

I have a semester long project that I have been working on in Android with a four person group. It is due tomorrow. I was planning on using JDBC for Android, but I have run into an ugly problem I had seen before. No matter what I do, my Android will not recognize external references. For awhile I avoided the problem by copying source code into my project.

However, with JDBC, I need a JAR Driver to in order to connect to the MySQL Database. So you are aware, I am adding the JAR by:

  1. Creating a folder
  2. Importing the JAR into that folder
  3. Adding the JAR to the BuildPath in the Android Project.

I also tried adding an external Java Project by adding it to the BuildPath. There were no Compile errors, but I got ClassNotFound errors when the code executed on my (Ice Cream Sandwich) phone. The project is in Android 2.2. I have heard making an Android Library project will solve this, but I am not interested in that solution as it defeats the purpose of the project reference in my case.

With the JDBC Driver, the following RuntimeException was thrown in my project here:

private final static String driver = "com.mysql.jdbc.Driver";
private final static String userName = "sqluser";
private final static String passwd = "sqlpw";

public Query() {
    try {
        Class.forName(driver);
    } catch (ClassNotFoundException e) {
//          System.err
//                  .println("error in DB connection: can not find the DB driver");
        throw new RuntimeException("Driver not found");
    }

The code works fine as a Java Application.

Any solution that works would be highly appreciated. Since the project is due tomorrow, it doesn’t have to be the most elegant approach. Also (not that it matters), my project is connected to a SVN repository via SubClipse. Thanks in advance!

  • 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-02T11:28:42+00:00Added an answer on June 2, 2026 at 11:28 am

    I’m unsure which folder you are putting the JAR in but for android projects you must put them inside of the folder “libs”.

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

Sidebar

Related Questions

We have to perform a semester project with distributed computing using CORBA or ICE.
I have been working on this server for the entire semester and have not
Intro We have a project to design and implement this semester. For our project,
I'm a CS master student, and next semester I will have to start working
I have a table with with four fileds as shown in figure Semester |
This is my final semester project. I have no knowledge of mobile application development.My
I have 3 database model - Semester, Section and Notecard The Notecard model has
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Have a matrix report now that has Position, Hours and Wages for a location
Have you ever tried learning a language while on a project? I have, and

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.