Step 1 :
- Download and install the latest Java Development Kit (JDK) from the Oracle website
-
Add JDK to environment variables
Reference link: Portal 1 (extranet), Portal 2 (domestic)
Step 2 : Now to run Java code on Atom editor, we need to install a package called " Script ". To do this, go to "File>Setting>Install ", where you can search for the " Script " package. If it is difficult to download in this way, please refer to another download method: Portal .
Step 3 : Atom click "File > New File " and save the file with " Ctrl + Shift + S ". Now name your file with .java extension and click Save (ctrl+s).
Write your first code "Hello, World!"!
Click Packages -> Script -> Run Script to run (or shortcut keys Ctrl + Shift + B, or Ctrl + p to type Run Script).
The result is as follows: