LAB 1 – INSTALLATION AND ENVIRONMENT SETTING
Roopa R (2548134)
1. Write down the steps to download and install Java. Use screenshot to explain the
steps.
Step I: Search for Java Oracle
Open any web browser such as Google Chrome.
In the search bar, type “Java Oracle”.
From the search results, select the official Oracle Java website.
Step II: Click on “Download Java Now”
Once the Oracle website opens, scroll down the page.
Click on the button “Download Java Now”.
Step III: Choose Operating System
You will be redirected to a page showing download options for different operating
systems such as Windows, macOS, and Linux.
Select the version suitable for your system (for example, Windows x64 Installer).
Step IV: Run the Installer
After the download is completed, double-click the installer file.
Allow the application to make changes to your computer.
The installer shows the default installation location as C drive.
Click on the “Change” button to modify the installation path.
Step V: Select Another Drive (D:)
Choose another drive such as D drive.
Create or select a folder (for example, D:\Java).
Click OK and continue with the installation.
Step VI: Installation Completed
The Java installation will be completed successfully.
To start writing Java programs:
o Open the selected drive (for example, D:\Java)
o Navigate to the bin folder
o Create a new text document to write Java code
2. Write a program in Java to print- "Hello Christites"
CODE
OUTPUT
3. Write down the steps to write, compile and run java program. Use screenshot to
explain the steps.
STEP 1: Write a java program
Open Notepad. Type the Java program and Save the file as: [Link]
STEP 2: Compile the program
Open Command Prompt and Go to bin folder:
Compile using: javac [Link]. If no error appears, compilation is successful.
STEP 3: Run the program
In the same command prompt, type: java SimpleProgram