top of page

What are Jar files? | How to create (executable) Jar files in BlueJ? | Brain Corner

Updated: Oct 2, 2021

You can create jar files or the executable files directly from BlueJ.

ree

'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!

ree

You can also visit my,

ree

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!!

ree






Comments


Post: Blog2_Post

Subscribe Form

Thanks for submitting!

9007786621

©2021 by Brain Corner. Proudly created with Wix.com

bottom of page