How to download executable jar file
Related Articles. Article Summary. Part 1. Eclipse has an icon that resembles a blue circle with lines through it and a yellow crescent. Click the icon to open Eclipse. This will open your most recent Java project in Eclipse.
If Eclipse does not open the Java project you want to export, see if you can find the project folder in the Package Explorer to the left. If you can't, click File in the menu bar and click Open file.
Navigate to the ". You can also find recent project under Open recent in the "File" menu. Right-click your project and click Refresh. You project is listed in the panel to the right. Right-click it and click Refresh near the bottom of the menu. This is to ensure all your code is up to date and won't conflict when you try to export it.
Alternatively you can right-click and hit F5 on your keyboard. It's in the menu that appears when you right-click your project in the Package Explorer panel to the left.
This option allows you to save your project as a runnable JAR file. Select the main class. The main class is the class that contains the method with the identifier called "main". This is the class that indicates where your program begins. Use the drop-down menu under "Launch configuration" to select the main class of your project.
Select an export destination and file name. This is the location you will export the JAR file to. You can either type the destination in the field below "Export destination" or use the following steps to select an Export destination: Click Browse.
Navigate to the folder you want to save the JAR file to. Type a name for the JAR file next to "Filename". Click Save. Ensure the "Extract required libraries into generated JAR" radio button is selected. Do not worry about the rest of the menu. Click Finish.
This exports your Java project as a JAR file. Part 2. Find or create an image. This is the icon you will use to click on your program.
You can search for an icon to use online, or you can use a graphics program like Photoshop, GIMP, Paint, or Preview to create your own graphic. The image size must be x in order to work properly as an icon. This is a free site that converts common image files. Drag your icon to the box with dashed lines. It's in the center of ConvertICO. This will upload your image file and convert it to a ICO file. Alternatively, if you have an image from the internet, you can enter the web address in the bar that says "Select file from URL".
Project Management. Resources Blog Articles. Menu Help Create Join Login. Get project updates , sponsored content from our select partners, and more. Full Name. Phone Number. Job Title. Company Size Company Size: 1 - 25 26 - 99 - - 1, - 4, 5, - 9, 10, - 19, 20, or More.
Get notifications on updates for this project. Get the SourceForge newsletter. JavaScript is required for this form. Note If double-clicking the jar file does not result in the file being run, it's likely not an executable file and cannot run in this manner. Note If the jar file defaults to be opened with an archive program, such as WinRAR or 7-Zip, you can change the default program.
Additional information See our jar definition for further information and related links. Software help and support. Was this page useful? For more information, see the Setting an Application's Entry Point section. When the Main-Class is set in the manifest file, you can run the application from the command line:. All rights reserved. Hide TOC. Consider these scenarios: Your JAR file contains an applet that is to be run inside a browser.
Your JAR file contains an application that is to be started from the command line.