How to Compile and Run your First Java Program

1 - Download JDK (Java Development Kit) : JDK (Oracle)
2 - Install JDK on you PC
3 - Download Notepad++ : Notepad++
4 - Open Notepad++ and Write your first code:
class IDEAClass{
public static void main(String[] args){
System.out.println("Your First Program in Java");
}
}
5 - Create folder "IDEAFolder" and Save as "IDEAClass.java" inside folder, (without quotation marks)
6 - Open Command Prompt
7 - Write: cd Desktop/IDEAFolder (and click Enter)
8 - Write: javac IDEAClass.java (and click Enter)
9 - Write: java IDEAClass (and click Enter)
10 - Congratulation, you executet your first program in Java.
Full Video:
No comments