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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:27:18+00:00 2026-06-09T02:27:18+00:00

I am attempting to create a uberjar of my java project with a dependency

  • 0

I am attempting to create a uberjar of my java project with a dependency for the mongodb-java-driver found here which includes the com.mongodb.* packages.

Currently I have tried using leiningen versions 2.0.0-preview4 and 1.7.1, and mongodb-java-driver version 2.7.3. My project.clj dependencies appear like so:

  :dependencies [[org.clojure/clojure "1.2.0"]
             [org.clojure/clojure-contrib "1.2.0"]
             [org.mongodb/mongo-java-driver "2.7.3"]
             [org.apache.commons/commons-math3 "3.0"]
             ]

While running the command lein clean && lein uberjar I see the following output:

...
Including mongo-java-driver-2.7.3.jar
...

Upon executing the uberjar I recieve the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/mongodb/DBObject
    at org.ianalexan.Topology.main(Topology.java:69)
Caused by: java.lang.ClassNotFoundException: com.mongodb.DBObject
    ...

Apparently, previous versions of leiningen had a problem with deleting .class files at runtime, I believe I am not using a version affected by this issue.

How can I create an uberjar that contains the com.mongodb.* dependencies?

  • 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-09T02:27:20+00:00Added an answer on June 9, 2026 at 2:27 am

    Turned out to be a problem with the packaging app!

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

Sidebar

Related Questions

I am currently attempting to create an Inno script installer which requests a list
I'm currently attempting to create a browser-based Calendar which allows jobs or meetings, etc.
I'm currently attempting to create an HtmlHelper which takes in the same kind of
Im attempting to create a new operator :? on lists, which operates the same
I'm attempting to create a CustomControl which will have various properties affected by an
I'm attempting create a spinning reload button, such as the one found in the
I am attempting to create a keyboard hook to use in Java. After some
i'm attempting to create an header which is divided into 3 divs they will
I am attempting to create a change password form in cakephp 2.0. I found
I'm attempting to create a method in Haskell which I would think is very

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.