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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:26:03+00:00 2026-05-26T21:26:03+00:00

I want to package my external jars (that are in lib/) and the jar

  • 0

I want to package my external jars (that are in lib/) and the jar that I am building of the class files all into one jar. Ive tried to do it as:

jar cvf proj.jar -C classes/ . lib/

The jar gets built up but when I use this jar in the program, the external jars supposed to be included as lib/ end up missing. So I think this is perhaps not the right way to do this.

I have tried exporting a jar through eclipse too (though I would like to fix the command line stuff) by giving it the location of external jars and I still had the problem of the program unable to locate the external jars.

  • 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-05-26T21:26:03+00:00Added an answer on May 26, 2026 at 9:26 pm

    You cannot (by default) nest jars in this fashion.

    You may, however, use something like JarClassLoader to do this, or something like onejar (or jarjar, or fatjar, etc.) that repackages jar contents into a single, un-nested jar.

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

Sidebar

Related Questions

Is it possible to package all external files, such as images and videos, into
I'm building jars where I want to package them without sources but I would
i've only ever created external .as files that extended a class such as sprite.
My package builds, as usual, upon several external packages. I want to modify one
We have split our application so that package A handles data from one external
I have an application that makes use of about 20 external jar files. In
I want to package a piece of code that absolutely must run on Java
I have a Maven based Spring-WS client project that I want to package as
Hi friends Iam doing an android application in that i want to select one
I want to use Jsoup as an external JAR with GWT on the client-side.

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.