What are Jar files? | How to create (executable) Jar files in BlueJ? | Brain Corner
- shivamsah969
- Oct 1, 2021
- 2 min read
Updated: Oct 2, 2021
You can create jar files or the executable files directly from BlueJ.

'Jar Files'
Jar files include all files of a given project in a single file. This presents a convenient way to transfer a project from one location to another, for example, of you want to send it as an attachment in an email. You can also make jar files executable, effectively creating an application that can be started by double-clicking.
How to create Jar files in BlueJ
In BlueJ, you can create a Jar file by choosing the 'Export' function from the 'Project' menu. You will see a dialog box.To create a jar file, choose "Store as Jar file". If you want the jar file to be executable (so that, for example, a double-click in Windows will start it) select the "main class" from the popup menu. The main class must contain a standard main method which will be executed to start the application. With the last checkbox, you can choose to include the source into the jar file. If you are creating a jar file as an executable application, you may choose not to include the source. if you, on the other hand, create the file for the purpose of submitting your project to your teacher for marking you would probably want to include the sources. Once you click continue, you will be prompted for a file name for the jar file. That's all - you're done!

You can also visit my,
Instagram ~ https://www.instagram.com/shivam_sah_01/
Telegram ~ https://t.me/studytable10
Blogger ~ http://studytable10.blogspot.com/
Twitter ~ https://twitter.com/Shivam_Sah_01
Facebook Page ~ https://www.facebook.com/BrainCorner0001

I hope you would have liked this post, If you want more posts like this then you can be a member of this community and can share your support to me.
For becoming a member, click below. It's free!!

Comments