Red Security
Tutorial Writing=>Compiling=>Executing in Java without IDE - Printable Version

+- Red Security (https://redsecurity.info/cc)
+-- Forum: Programming (https://redsecurity.info/cc/forumdisplay.php?fid=5)
+--- Forum: Java (https://redsecurity.info/cc/forumdisplay.php?fid=7)
+--- Thread: Tutorial Writing=>Compiling=>Executing in Java without IDE (/showthread.php?tid=91)



Writing=>Compiling=>Executing in Java without IDE - Mr.Kurd - 07-17-2017

In The Name Of Allah
Al-Salam Alekum

I will show you how to write a java programs without using IDE.
We will use CMD and Notepad.

let's start..

First Writing:
Open your Notepad and write your code:
Code:
import javax.swing.JOptionPane;
public class Welcome
{
public static void main( String args[ ] )
{
JOptionPane.showMessageDialog(null, "" );
}
}
Then save it with the class name, Here the name is "Welcome" so we will save it as (Welcome.java)

Next Compiling:
Open CMD and we will compile the file by using javac command:
Code:
javac Welcome.java
this will generate a file with name (Welcome.class).

Finally Executing:
We will use again CMD by using "java + className" command:
Code:
java Welcome

Thanks for reading.


Wa Salam Alekum