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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:13:01+00:00 2026-05-13T16:13:01+00:00

Possible Duplicate: Put external library to the JAR? I have NetBeans 6.8 and I

  • 0

Possible Duplicate:
Put external library to the JAR?

I have NetBeans 6.8 and I wrote one class which has two libraries (jar-files).
Building it, I get a “dist” folder with my project.jar and a “lib” folder which contains the two lib jar files.

How could I get all this in one jar file?
(I do not use Maven/Ant or something like this.)

  • 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-13T16:13:02+00:00Added an answer on May 13, 2026 at 4:13 pm

    The basic problem is that the current version of Java does not support jars inside jars out of the box.

    The recommended solution is to use the Class-Path line in the MANIFEST.MF file inside your jar to point to required libraries (relative paths are allowed) and then deploy all files together and invoking it with “java -jar your.jar”

    If you really want to have a “jar-inside-jar” solution, we have used one-jar for several years, but gone away from it since our target JVM worked better with the solution described above.

    http://one-jar.sourceforge.net/

    I used it with the fatjar plugin in Eclipse. I do not have any experiences with building it into Netbeans, but it is simple to build into an ant script which I believe is what NEtbeans use anyway.

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

Sidebar

Related Questions

Possible Duplicate: VB Using colons to put two statements on same line I have
Possible Duplicate: How many Python classes should I put in one file? Coming from
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the
Possible Duplicate: Where and why do I have to put the “template” and “typename”
Possible Duplicate: Why must I put a semicolon at the end of class declaration
Possible Duplicate: Where and why do I have to put the “template” and “typename”
Possible Duplicate: Why do you have to put a 1; at the end of
Possible Duplicate: How to put this code in v3 instead v2 map I have
Possible Duplicate: Where and why do I have to put the “template” and “typename”
Possible Duplicate: splitting a string i have a string which looks like this: http://pastebin.com/m5508ff19

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.