Java Programming Guide
A. Using Eclipse
Download Java Setup Installer
1. Download and install Java Setup Installer if java was not installed in your
computer/laptop. Otherwise DO NOT download and install Java Setup Installer
anymore.
How to check if java was already installed in your computer/laptop.
Click Drive C ->Program Files (x86) -> Java - >jre1.8.0_251 or other version
Use this link to download Java Setup Installer if java was not yet installed in your
computer/laptop.
https://drive.google.com/file/d/1uB61ql1D0OOTEjv10g1zCdHO-9jHjLY6/view?usp=sharing
Download Eclipse
a. Download Eclipse, copy the download zip file to your folder then extract.
https://drive.google.com/file/d/1TbvqcZysjYsGDzXGKYQNoYyviV6qjBVR/view?
usp=sharing
Java programming Using Eclipse
1. Open the folder that contains the extracted eclipse, double click the folder eclipse and
double click the eclipse icon.
Eclipse is LOADING …….
Eclipse is asking your workspace or folder where
all your programs will be stored. Click Broewse to
specify your folder.
Eclipse Welcome Page. Click the X to close the welcome page.
Eclipse IDE
To Create a Java Program.
1. Create first a new project.
Click File -> New – Java Project. Enter your Project Name. e.g. JavaPrograms. Click Finish
2. Expand JavaPrograms by click the right arrow key before the the project name JavaPrograms.
Right click scr folders->New->Class. Enter your program name e.g AreaRectangle and don’t
forget to click the check box public static void main(String[] args). Click Finish.
Java default program structure using Eclipse
You can now enter/type your java program inside the main method. Using our example in the reading
material.
Run the program. Click the right arrow icon on the menu bar.
The program output
3. Sdfsdf
4.
B. Using Codiva.IO [Online Java Compiler]
JAVA ONLINE COMPILER
Using Codiva.io
Create an account
Sign in
Create a Project
Type a project and click create.
Create a java program on your project
Type your program name. e.g AreaReactangle