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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:11:23+00:00 2026-05-19T12:11:23+00:00

I have created jar file for my project. It is running successfully. There is

  • 0

I have created jar file for my project.
It is running successfully.
There is one ‘lib’ folder.
I have other jar files in this folder.
I added all these jar files in MANIFEST.MF in the jar as follows:

>>Class-Path:jar file names .... ...  ....

I run jar file as follows:

>>java -jar jarfile.jar arguments...

but problem is that I need to put this jar file where the ‘lib’ folder is located,
and if i want to run this jar on others machine,then i need to give this jar folder along with ‘lib’ folder.

but I dont want to give this jar along with ‘lib’ folder.

And when I try to put this jar outside the ‘lib’ folder,it is not working.

I have to give this only jar folder to other machine.so I can run my jar file on others machine.

  • 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-19T12:11:24+00:00Added an answer on May 19, 2026 at 12:11 pm

    I’m sorry to tell you, but unless you implement your own custom class loader, you can not nest jar-files like that in Java. See for instance this discussion.

    You could however merge your jar files using tools such as One-Jar.

    Related answer.

    (woho, this was my 1000th answer 🙂

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

Sidebar

Related Questions

I have created a JAR file in this way jar cf jar-file input-files .
I have recently just created Java project using Eclipse that requires 2 JAR files
i have created executable jar file of my project built in eclipse. but when
I have created a java application and packed it into a jar file on
I have a Maven project which generates a 413.06 KB jar file. I have
I am running Ubuntu. I have a folder Project, and in that folder I
I have a maven pom file for an open source project. This pom file
I have a locally-created jar file containing hibernate-annotated entities. I also have a separate
does any knows how to access .jar file in JS. I have created class
I ran lein uberjar on my project and it created the corresponding jar files.

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.