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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:51:58+00:00 2026-06-17T23:51:58+00:00

I have to write a java application which I’m putting together using eclipse and

  • 0

I have to write a java application which I’m putting together using eclipse and it relies on open source code. This application needs to be self-contained, meaning that I’m supposed to create a jar file that has no external dependencies.

I can use the open source code when I reference the jar files in the project’s build path, but the idea is to have the actual source code as part of the eclipse project, side-by-side with my code.

The source code can be found here: http://hc.apache.org/, but when I import an existing file system into my project I can’t quite get things to work. The packages end up with the wrong names, breaking references, and I can’t do anything. Notice that the folder containing the source code has this structure:

 httpcomponents-client-4.2.3\
    src\
    httpmime\
    httpclient-osgi
    httpclient-contrib
    httpclient-cache
    httpclient-benchmark
    httpclient
    fluent-hc

each of those subfolders has src/main/java/org/apache subfolders.

Can someone please explain how to do this? Am I supposed to import everything one java file at a time?

  • 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-17T23:51:59+00:00Added an answer on June 17, 2026 at 11:51 pm

    Use a tool like OneJar, FatJar, JarJar, etc. to create a single-jar application.

    As Charlie mentioned, the Maven Shade plugin is another choice, particularly if you’re already using Maven. If you’re not, consider it or another transitive dependency management tool.

    Some tool should be used, IMO, and it’s more important the more dependencies you have.

    Alternatively you could use a jar class loader and include the jar file in your artifact.

    I would most definitely not include the source of dependencies in your own project.

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

Sidebar

Related Questions

I have a compiled Java Application (.jar file extension, no source code) which will
I need to write a standalone Java application which will have a embedded HTTP
I have a java application which needs to read and write files to HDFS.
I have a Java application which is Voip. I am using the one socket
I have to write an XML file using java.The contents should be written from
How to write a java program which will tell me whether I have internet
I have a problem; I want to write a java code for sending an
i have a java applet application in which i use rich text area .
I have a client Server application which communicate using objects. when I send only
I am trying to write a Java application which draws multiple balls on screen

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.