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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:08:12+00:00 2026-06-17T01:08:12+00:00

I have the code on github, https://github.com/Quillion/Game And I would like to make it

  • 0

I have the code on github,

https://github.com/Quillion/Game

And I would like to make it executable. jarIt.bat is the thing that makes the jar.

path C:\Program Files\Java\jdk1.7.0_04\bin;%path%

cls

javac *java

echo Main-Class: Main> manifest.txt
jar cvfm Main.jar manifest.txt *.class
java -jar Main.jar

del *.class

I can execute it on my computer using the run.bat file,

path C:\Program Files\Java\jdk1.7.0_04\bin;%path%

cls

java -jar Main.jar

but if I transfer it to another computer or Linux, I still have to use the commands to execute it. How does one create a jar file so that it can be double clicked and executed?

I am somewhat bad at the whole jar explanation, so if someone can even find a good link to share that explains everything I will be really grateful.

I have tried reading numerous explanations, but none explain how to do it properly. I know that I can accomplish this using eclipse, but I would like to learn the know how and to understand how to make one myself without any help of IDE.

  • 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-06-17T01:08:14+00:00Added an answer on June 17, 2026 at 1:08 am

    Unfortunately, not all OS support running the jar by a double click ootb. You’d be off best by generating scripts for all environments that you need to support. You can do that with Maven and the plugin that does the scripting for you:

    http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/

    Btw, your jar should already run by double click in a modern windows installation! You did it quite right.

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

Sidebar

Related Questions

I have the following code (from https://github.com/timabell/PageStructureBuilder ) and the ever knowledgeable ReSharper is
I have downloaded this code from Github : https://github.com/gilthonweapps/CorePlotBarChartExample .How to get onTap for
I have written a sample app that reproduces the problem: https://github.com/blundell/VideoRatioProblemPerDevice The VideoView documentation
I have this code: https://github.com/magicgoose/lwjgl-nifty-test-project When I render only GUI, it works like expected.
I'm using ABS the ShareActionProvider. I have followed this code : https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ShareActionProviders.java and its
I am using Fedor's code(https://github.com/thest1/LazyList) for loading bitmaps. I have modified a few lines
I have set up a simple IPN using the code https://github.com/Quixotix/PHP-PayPal-IPN However when I
In the about_symbols.rb Ruby Koan (https://github.com/edgecase/ruby_koans), I have the following code: RubyConstant = What
I have tryed to run this code in my console: script/plugin install git://github.com/apotonick/cells.git ...but
I am new to github. I have been working on a code that I

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.