You are on page 1of 11

Week -1

Workshop

Introduction to Java Programming

1
Week 1-Workshop Introduction to Java Programming
Java Installation
• Before you install java, check whether your computer has java already or not?
To check, follow the instructions below:
a) Open the command prompt
b) Type java -version
c) If you see the output as below, then you have already installed java in your machine

Week 1-Workshop | 2
Java Installation
• If you see a different output, then you have not installed java in your machine. To install java follow the
instructions
a) Open your browser, then search by typing "JDK download".
b) Go to the provided link and download file respectively
https://www.oracle.com/java/technologies/javase-jdk11-downloads.html

Week 1-Workshop | 3
Java Installation
b) Open the file and click on next button c) Open the file and click on next button

Week 1-Workshop | 4
Java Installation
d) Click close button e) Check Java environment setup via command prompt

Week 1-Workshop | 5
Java environment variable setup steps
2. Go to advanced system settings
1. Right click This PC and go to properties

Week 1-Workshop | 6
Java environment variable4.setup steps
Select path and click on edit
3. Click on environment variables

Week 1-Workshop | 7
Java environment variable setup steps
6. Click new and paste bin address
5. Copy jdk bin folder address

Week 1-Workshop | 8
Java environment variable setup steps
7. Open command prompt. Or type cmd in search bar.

Week 1-Workshop | 9
Java environment variable setup steps
8. Type ‘javac’ command in command-prompt.
If you see the following output then, java compiler is successfully installed. If you see a different output,
then follow the steps from slide 6 again.

Week 1-Workshop | 10
Exercise
Q 1) Write a java program to display Hello world then execute the program.

Week 1-Workshop | 11

You might also like