Atom is a free and open-source text editor developed by GitHub. It is available on macOS, Windows, and Linux. We can customize it to do anything we like to do. It can also be used as a source code editor.
Here we are going to discuss how to set up Atom Editor for Java Development on Windows 11. So let’s get started. Before that, first of all, we have to install and setup Java JDK on Windows 11.
How to Setup Atom Editor for Java Development
After you have successfully installed and set up Java JDK on your system. Follow the following steps:
Step 1: Open any browser, search for Atom Editor and open the link from atom.io. Here You will get all the information and features about the Atom Editor.
Step 2: Now to download the latest version of Atom Editor for Windows 11, click on the “Download” option.
Step 3: After the download has been completed, open the installer file. It will open the installation wizard, here you don’t need to do anything it will automatically install and open the Atom Editor.
Step 4: Now to run Java code on Atom Editor, we need to install one package called “Script“. For that, go to Files > Settings > Install, here you can search for the “Script” package.
After that, you are ready to use Atom Editor for Java Development. Now let me show you how you can create a Java project using Atom.
How to Create Java Project using Atom
Here are steps to create your first Java project using Atom Editor on Windows 11:
Step 1: Click on File > New File, and save the file using “Ctrl+Shift+S“. Now name your file with the .java extension and click on “Save“.
Step 2: Now write your Java program but make sure that your class and file name must be the same. As you have saved our file as test.java, you had used ‘test‘ as a class name.
Step 3: Now to run the Java code, first of all, you have to save your file using “Ctrl+S”. Now click on “Packages“, select “Script” and click on “Run Script” to compile the Java code on Atom Editor.
That’s it. This is how you can setup Atom Editor for Java Development on Windows 11. I hope this article was helpful to you. If you liked the article then you can share it with your friends.