Check JDK is already installed or not.
1. Check Java installed Version
Search “CMD” in search bar and open “Command
Prompt”
Enter command “java -version” and hit Enter button
How to check System configuration i.e. operating system
Windows 10 UI
OR
Windows 7/8
How to Install JDK 1.8 :
2. Google search “jdk 1.8 download” and go to first website of “Oracal”
OR
Go to - https://www.oracle.com/java/technologies/downloads/archive/
And then download the JDK file.
3. Go to download and search the downloaded file. Then
double click on it.
Click on Next
4. Wait until updating
5. Click on Next
6. Wait until instating
7. Click on Closed.
8. Restart the computer
9. Check Java installed Version
Search “CMD” in search bar and open “Command
Prompt”
Enter command “java -version” and hit Enter button
How to get Java folder path.
Setting Environment Variable:
1. Open System Properties – Open My Computer and Click on System Properties.
2. Click on Advance System Setting (Here you can check Operating System and processor
32(x86) or 64(x64) bits )
OR
3. Go to Advance and Click on Environment Variables
4. Click on New
5. Enter Name – Any (eg. JavaPath) and Value – C:\Program Files\Java\jdk1.8.0_231\bin
then click on OK button
Path may be common - C:\Program Files\Java\jdk1.8.0_231\bin
C:\Program Files (x86)\Java\jdk1.8.0_231\bin
6. Click on OK button on Environment variables window and then again click on OK button
System Properties window
How installed the Eclipse:
1. Search Eclipse Download in google search and go to
“www.eclipse.org” and click on Download
OR
Use Link - https://www.eclipse.org/downloads/
2. Run the downloaded file.
3. Select the first option
4. Select the new location except C drive and click on
install.
5. Closed the window, go to desktop and Launch
Eclipse application by double clicking on icon.
6. Click on Launch
Create the Project :
1. File >> New >> Project >> Java >> Java Project
2. Enter Project Name and click on Next >> Finish
3. Open Project, then Right Click on “src” folder and go to
New >> Package
Enter Package and click on Finish
4. Right Click on Package –> New >> Class
Enter Class name and click on finish
Copy the below code and pest the code here :
public static void main(String[] args)
{
System.out.println("Hello");
Click on Run button, select the Class
Output should be :