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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:39:45+00:00 2026-05-25T03:39:45+00:00

I have an Android project which included a class with a file copy method.

  • 0

I have an Android project which included a class with a file copy method. Out of interest I thought I’d extract this into a (non-android, just plain java) project of its own, as it’s something that other projects could make use of.

I then thought I’d take a look at creating a jar from this new project, so other project could just have the jar in a ‘lib’ folder and reference it as a library, rather than me having to import the project in eclipse etc.

My question is, what should I be including in the jar file when I go through the jar export wizard in eclipse? It seems to work if I just include the *.class file but what if my project contained more than a single file, and had multiple packages etc. Would I need the .classpath and .project for example?

Thanks,
Barry

  • 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-25T03:39:46+00:00Added an answer on May 25, 2026 at 3:39 am

    You can include things that are needed at runtime.

    For example:

    • The .class files contain the compiled code; this is needed at runtime.
    • You may also need to include other resources, such as images.
    • Sometimes you may find it handy to include a custom META-INF/MANIFEST.MF.
    • Sometimes it’s useful to include a dynamically linked, native library (e.g., a Windows DLL), but to use it you’ll usually need to extract it first to a temporary location.
    • Sometimes additional resources are zipped into a jar, such as API documentation for a library.

    The .project and .classpath files are not used at runtime. They do not need to be included in the jar file.

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

Sidebar

Related Questions

I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
i'm trying to include a maven java project into my android project. the maven
I can't compile my Android project for the Dalvik VM because of this error:
How can I instruct Eclipse to copy a file from my Android solution to
I'm developing an Android project which currently has 4 packages: com.myapp.app.activities com.myapp.app.db com.myapp.app.ws com.myapp.app.utils
My team is working on an Android project which consists of several Android applications
While creating a new android project in eclipse 3.5, i have selected Android 2.1
Hey guys i am new to android development, I am developing a project which
I have two threads in an Android application, one is the view thread, and
I'm doing some Android development, and I much prefer Visual Studio, but I'll have

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.