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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:47:32+00:00 2026-05-16T16:47:32+00:00

When I press build project it NetBeans builds, as far as I could find,

  • 0

When I press “build project” it NetBeans builds, as far as I could find, separate class files. How can I set it to build them into a jar file? Even better it’d be if I can build several applications (all separately runnable from command line) from one project.

I code Scala 2.8.

  • 1 1 Answer
  • 2 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-16T16:47:33+00:00Added an answer on May 16, 2026 at 4:47 pm

    Using the Run > Clean and Build Main Project command in NetBeans puts your program’s JAR in a folder named dist located at the root level of the project; any associated libraries go in dist/lib. As discussed here, a JAR’s manifest may have only one Main-Class attribute, but the JAR itself may have an arbitrary number of classes that declare a main() method.

    Addendum: Here is a concrete example using H2 Database.

    $ java -cp h2.jar org.h2.tools/Console -help
    $ java -cp h2.jar org.h2.tools/Server -help
    $ java -cp h2.jar org.h2.tools/Shell -help
    

    Addendum: External libraries are often added via the Library Manager.

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

Sidebar

Related Questions

How can i turn on incremental builds in VS2010? I've noticed that my project
I'm trying to compile a set of .c files from an open source project
The NetBeans command to run an Ant build for a project is F11 .
I press login button to login into my app and I'm using asyncTask for
I can't press any other buttons in the same window while UIScrollView is zooming
When I press F5 the project compiles, and the new web page launches. However,
I have a maven project which builds OK locally (windows). When i try to
I have a project in Visual 2005 generated using CMake, and everytime I press
I am relatively new to Eclipse. When I build my project in Eclipse, I
Im starting a new project for a client. The client want to build an

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.