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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:32:56+00:00 2026-05-25T06:32:56+00:00

I am trying to clean and build a jar but for some reason when

  • 0

I am trying to clean and build a jar but for some reason when I do a Run-> Clean and Build Main Project, I don’t get a lib folder in the dist folder. This is causing a missing classes error when I run my jar file via cmd. How do I configure it to have the lib folder in my dist folder during my build? Thank you.

Edit:
Also, when I hit Run->Clean and Build Main Project, the output says the following:

2 warnings compile: Created dir: C:\Documents and
Settings\me\Desktop\ProjectX\ProjectX\dist C:\Documents and
Settings\me\Desktop\ProjectX\ProjectX\dist\ProjectX.jar is a directory
or can’t be read. Not copying the libraries. Not copying the
libraries. Building jar: C:\Documents and
Settings\me\Desktop\ProjectX\ProjectX\dist\ProjectX.jar To run this
application from the command line without Ant, try: java -jar
“C:\Documents and
Settings\me\Desktop\ProjectX\ProjectX\dist\ProjectX.jar” jar: BUILD
SUCCESSFUL (total time: 3 seconds)

Why is it not copying the libraries during the build?

  • 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-25T06:32:57+00:00Added an answer on May 25, 2026 at 6:32 am

    According to this forum.netbeans.org (cached copy as forums.netbeans.org is not accessible atm) article this could be caused by ProjectX.jar being added to the required JARs for some mysterious reason… Could be worth checking

    EDIT: cached copy seems to have disappeared, the original thread can be found here.

    EDIT again: as both the original and the cached copy have disappeared, head over to the wayback machine to read the article. That being said, anno 2018+ one should probably consider using a more modern / widespread project format like Maven, which is also well supported by Netbeans and offers a much more flexible libraries management approach.

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

Sidebar

Related Questions

I'm trying to make a clean maven setup on some legacy project that uses
I am trying to write a build.xml file for my project. When I run
I was trying to clean up some accessability stuff in my code, and inadvertently
I am trying to clean up some of the JavaScript throughout my views and
I'm trying to clean up some warnings in some old Java code (in Eclipse),
I am trying to clean up some data that has been incorrectly entered. The
We just moved over to Git from SVN. In trying to clean up some
I'm trying to configure build.xml files for build forge, but it seems like I
I'm trying to push a django app to the production server, but for some
I am trying to build my Android project with Ant. Whenever I use Eclipse

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.