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

  • Home
  • SEARCH
  • 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 8430169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:32:07+00:00 2026-06-10T05:32:07+00:00

I have a Java protect with the c3p0 JAR. Compiling my project in eclipse

  • 0

I have a Java protect with the c3p0 JAR. Compiling my project in eclipse works. No errors or something. But when i try to run my application it says the following:

java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/DataSources

Do i need to give the jar file the other jarfile from c3p0? Or could i link them when launging the application?

  • 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-10T05:32:09+00:00Added an answer on June 10, 2026 at 5:32 am

    Note: I’ve understood your problem to be when running outside Eclipse.

    The standard Java classloader responsible for loading your classes does not understand jar-files inside jar-files, so you need to do something else:

    • You can merge all classes from all the jar-files you use into a single jar file. (recommended for you at this point, not general recomendation)
    • You can put jar-files inside the single jar-files and use a special classloader which understands this.
    • You can put the referenced jars “next” to the single jar file containing your class files, and have the runnable jar include the necessary MANIFEST.MF voodo needed to refer to them.

    The File->Export->Runnable jar option in Eclipse can do all three based on what you choose. Pick the one best suited to how you will get the classes to the final users.

    Personally I like the “jars next to the generated jar” as it is the closest to what is supported out of the box by Java, while keeping the original jar files. The simplest is most likely to merge all classes, but when you get more advanced you will find that it has some disadvantages – at this point you will most likely not encounter them.

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

Sidebar

Related Questions

I have a Java project in Eclipse with ~10 packages and ~10 class files
I have java project with building rpm by maven. Required create noarch packets, but
I have to protect with a validation Key an application written in Java, the
I have a java project in eclipse which are using tomcat. This project has
I have my java project compiled and working fine but now I want to
I am trying to run GWT test from eclipse 3.6 but have stuck with
i have a java project, works as a server. when an instance of this
I have a java project in eclipse with different packages. How can I compile
I have a java project that uses JPA 2/Hibernate 3.5.6 for data access and
I have a Java project that needs a addon interface. I was thinking about

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.