Run Java in Atom

Rupam Yadav Dec 19, 2022 Dec 10, 2021
Run Java in Atom

Atom is an open-source text editor with all the features that a text editor should have. It is a cross-platform software that can be installed on all the common operating systems like Windows, Linux, and Mac.

Although Atom is just a text editor, we can run programming scripts on it by following a few steps stated below.

Run Java in Atom in Windows

  • Download and Install the latest Java Development Kit(JDK) from Oracle’s website.
  • Add the downloaded JDK’s path to the Environment Variables.
  • Download the Atom Text Editor from its official website which is atom.io and install it.
  • After installation, go to the Packages menu and loop for Settings View in the dropdown.
  • In the Settings View, click the Install Packages/Themes option.
  • In the Install Packages window, search for the package script and look for the package by atom-community.
  • Click on the Install button and wait for a few moments to finish the download.
  • Once the installation is finished, head over to the File menu and create a New File.
  • In the newly created file, we write the following code to check if the code runs.
    class JavaExample{
        public static void main(String args[]){
         System.out.println("Hello World");
        }
    }
    
  • Now, to run the Java codes, we use the shortcut Ctrl + Shift + B, and the output should be the following.
    Hello World
    [Finished in 1.5s]
    
Author: Rupam Yadav
Rupam Yadav avatar Rupam Yadav avatar

Rupam Saini is an android developer, who also works sometimes as a web developer., He likes to read books and write about various things.

LinkedIn