My Journey | Online Coding Bootcamp| Masai

My Journey in Masai School Coding Bootcamp

I know a lot of you have so many doubts about Masai School.

Don’t worry !!

You are in right place to clear your doubts and know more about Masai School.

  • Whether I should Join?
  • What they will teach in just six…

Django | Python | Virtual Environment

˜”*°•.˜”*°• This article will guide you through installing Python 3.7 and Django on Windows. It also provides instructions for setting up a virtual environment, which makes it easier to work on Python projects. This is meant as a beginner’s guide for users working on…

It is an executable file format and it contains a program and has the ability to run as a program in computer. It does not require any import statements to execute. Just Double Click is enough to run the exe file.

Hope, python is already installed in your system and…

Jar file

JAVA EXECUTABLE FILE

A jar file is simply a file containing a collection of java class files.

To make a jar file executable, you need to specify where the main Class is in the jar file. Example code would be as follows.

public class JavaClassName{    public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
// your logic here
}
});
}
}

Compile your classes. To make a jar, you also need to create a Manifest File (MANIFEST.MF).

Manifest-Version: 1.0
Main-Class: JavaClassName

Place the compiled output class files (JavaClassName.class,JavaClassName$1.class) and the manifest file in the same folder. In the command prompt, go to the folder where your files placed, and create the jar using jar command. For example (if you name your manifest file as manifest.mf).

jar helloworld JavaClassName.jar manifest.mf *.class

Mausam Singh

An undergraduate student at Mumbai University majoring in computer science. I believe in writing for self reflection and reading for self development.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store