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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:38:14+00:00 2026-05-28T07:38:14+00:00

Hi all, I have about 10 jars and when I run my program I

  • 0

Hi all,

I have about 10 jars and when I run my program I invoke the following:

java -Xmx1024m -cp a.jar;b.jar;c.jar;whatever.jar -Dfile.encoding=UTF-8 [package][class]

I want to make this as an executable jar. I thought that when I unjar (that sounds weird, but I’m using java command – not using general zip program) the jar containing [package][class], update manifest.mf and rejar it. Unfortunately, this did not work.

Is it possible for me to make it as an executable jar or I should unjar it and sum it all?

  • 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-28T07:38:14+00:00Added an answer on May 28, 2026 at 7:38 am

    You just need this line in your manifest file

    Main-Class: my.package.Main
    

    Then run the jar command with the m flag, and give it the name of your manifest file:

    jar cmf manifest main.jar *.class
    

    Unfortunately, jars can’t contain other jars. Give the jar containing your entry point a Main-Class, and then set the classpath so that the other 9 jars are accessible.

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

Sidebar

Related Questions

So, i have some question about xml Documents in Java. Can i get all
I am rather noob at java jars deployment. I have following scenario: I have
hi all i have a question about hiding records in crystal report and i
At my house I have about 10 computers all different processors and speeds (all
I've got about 200k images in a bucket. They all have expires headers of
I have used all the Standard Network related code for Getting Images of about
I have been wondering about temp tables in sp's and how all that can
Dear all, I have a question about Facebook Page: ( NOT user profile page,
I have seen posts all over the internet that talk about how to fix
First of all, I have to say that I'm going to talk about System.ComponentModel.Component

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.