SlideShare a Scribd company logo
Practice for java beginners
Java programming
Nooria Esmaelzade
2016
Start!!??
Java is a simple programming language.
Writing
compiling
and debugginga program is easy in java.
Start programming with java
Install JDK (java development kit)
Install eclips (IDE)
What is JDK & eclips?
JDK enables us to develop and run a java program
Eclips is the environment where we write the codes
JDK installation
Easy java installation & practice
Easy java installation & practice
Easy java installation & practice
Easy java installation & practice
Easy java installation & practice
Eclips
Just unzip the eclips file
Right click the zip file and
Select extract all
Open the extracted file
Click this icon
Eclips environment
Created packages and
classes are here
Write codes here
Display the result here
Write the first code inside eclips
public class FirstExample {
public static void main(String args[]){
System.out.println("I am a student ");
}
}
The program will display “I am a student” as an output
Learn More about JDK
JDK (java development kit)
It is a software development environment used
for developing Java applications and applets.
It is a superset of a JRE and javac compiler.
Compiler
(javac)
JVM
JRE
JDK
Source code
bytecode
Compiler (javac)
A compiler is a computer program that transforms source code written
in a programming language into another computer language.
Java source code Bytecode
Compiler
JRE (Java Runtime Environment)
JVM(Java Virtual Machine) = interpreter
A (JVM), interprets compiled (bytecode) for a computer's
processor (hardware)
JVM
JRE
Let’s practice how it works!!!
Running java code/source code via CMD
Make sure if javac (java compiler) is exist.
Run CMD and write these commands and click enter
The result should be as the following picture
So You have java compiler!!
This is the directory where
the java compiler is located
Define the java compiler directory path
1- Open System properties
2- Go to Advanced tab
3- Click ‘Environment variables’
4- Under ‘System Variables’ scroll down to
find PATH. Edit the entry and add JDK path.
5- Click OK and close the windows.
Note: you can copy the compiler directory in the
previews picture and paste it to variable value.
Change the directory. Here the
source code is located on
desktop.
Compile the source file
via java compiler(javac)
Run the compiled file via
jvm
Display the result/ output
Run test.java program in CMD

More Related Content

PPT
About java
PPT
Oop lecture2
PPT
Java Presentation
PPT
1 2 java development
PPT
Eclipse introduction IDE PRESENTATION
ODP
Econ11 weaving
PDF
Eclipse Tips & Tricks - EclipseCon North America 2014
PDF
Eclipse Luna - What's New!
About java
Oop lecture2
Java Presentation
1 2 java development
Eclipse introduction IDE PRESENTATION
Econ11 weaving
Eclipse Tips & Tricks - EclipseCon North America 2014
Eclipse Luna - What's New!

What's hot (17)

PPTX
Java programming course for beginners
PPTX
Java history, versions, types of errors and exception, quiz
PDF
Java 8 tooling in Eclipse
DOCX
Unit of competency
PDF
Core Java Tutorial
PPT
Steps to write Selenium
PPTX
Presentation1
PDF
Introduction to java technology
PPT
Selenium ide material (1)
PDF
Selenium IDE Introduction, Installation and Working
PDF
Stop (de)bugging me!
PPT
Java ppts unit1
PPTX
Automated UI testing done right (DDDSydney)
PDF
Selenium IDE
PPTX
Java features
PPTX
Selenium IDE
PPT
Selenium Ide Tutorials
Java programming course for beginners
Java history, versions, types of errors and exception, quiz
Java 8 tooling in Eclipse
Unit of competency
Core Java Tutorial
Steps to write Selenium
Presentation1
Introduction to java technology
Selenium ide material (1)
Selenium IDE Introduction, Installation and Working
Stop (de)bugging me!
Java ppts unit1
Automated UI testing done right (DDDSydney)
Selenium IDE
Java features
Selenium IDE
Selenium Ide Tutorials
Ad

Similar to Easy java installation & practice (20)

PPSX
Installing JDK and Eclipse -JDKeclipse.ppsx
PDF
Java goes wild, lesson 1
PDF
Java interview question
PDF
Java 17 Recipes - A problem-solution approach 4th Edition Josh Juneau
PDF
(Ebook pdf) java programming language basics
PPTX
Lecture-2.pptx sensor design and signal processing using RF and THz sensing, ...
PDF
Java Programming Fundamentals: Complete Guide for Beginners
PPTX
01_Java_Programming_Lecture-01_FCIT.pptx
PDF
Java programming language basics
PDF
Java lab1 manual
PPT
Training Java - Lesson1
PDF
How java works
PDF
How java works
PDF
J introtojava1-pdf
PDF
Core java introduction
PPTX
Chapter 2.3
DOCX
JAVA CORE
PDF
Download Free Java Notes PDF for Easy Learning
PPT
Java Programming : introduction
PPSX
JAVA.ppsx java code java edv java development
Installing JDK and Eclipse -JDKeclipse.ppsx
Java goes wild, lesson 1
Java interview question
Java 17 Recipes - A problem-solution approach 4th Edition Josh Juneau
(Ebook pdf) java programming language basics
Lecture-2.pptx sensor design and signal processing using RF and THz sensing, ...
Java Programming Fundamentals: Complete Guide for Beginners
01_Java_Programming_Lecture-01_FCIT.pptx
Java programming language basics
Java lab1 manual
Training Java - Lesson1
How java works
How java works
J introtojava1-pdf
Core java introduction
Chapter 2.3
JAVA CORE
Download Free Java Notes PDF for Easy Learning
Java Programming : introduction
JAVA.ppsx java code java edv java development
Ad

More from Nooria Esmaelzade (8)

PPTX
Walt Disney Animators
PPT
Communication barriers
PPTX
one smile can be the key to open everyone s heart
PPSX
Why we need to control scope
PPTX
Easy practice with if statement and boolean type
PPTX
Easy practice with current timemillis method
PPTX
Easy practice with java variables
PPTX
Easy java key definition & practice
Walt Disney Animators
Communication barriers
one smile can be the key to open everyone s heart
Why we need to control scope
Easy practice with if statement and boolean type
Easy practice with current timemillis method
Easy practice with java variables
Easy java key definition & practice

Recently uploaded (20)

PPTX
Learn how to use Portable Grinders Safely
PDF
The Zeigarnik Effect by Meenakshi Khakat.pdf
PPTX
Presentation on interview preparation.pt
PDF
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
DOCX
Boost your energy levels and Shred Weight
PPTX
UNIVERSAL HUMAN VALUES for NEP student .pptx
PPTX
cấu trúc sử dụng mẫu Cause - Effects.pptx
PPTX
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
PPTX
Learn how to prevent Workplace Incidents?
PDF
SEX-GENDER-AND-SEXUALITY-LESSON-1-M (2).pdf
PDF
The Power of Pausing Before You React by Meenakshi Khakat
PPT
proper hygiene for teenagers for secondary students .ppt
PPTX
Attitudes presentation for psychology.pptx
PDF
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
PPTX
THEORIES-PSYCH-3.pptx theory of Abraham Maslow
PPTX
Understanding the Self power point presentation
PPTX
Commmunication in Todays world- Principles and Barriers
PDF
Quiet Wins: Why the Silent Fish Survives.pdf
PPTX
Learn about numerology and do tarot reading
PDF
Red Light Wali Muskurahat – A Heart-touching Hindi Story
Learn how to use Portable Grinders Safely
The Zeigarnik Effect by Meenakshi Khakat.pdf
Presentation on interview preparation.pt
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
Boost your energy levels and Shred Weight
UNIVERSAL HUMAN VALUES for NEP student .pptx
cấu trúc sử dụng mẫu Cause - Effects.pptx
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
Learn how to prevent Workplace Incidents?
SEX-GENDER-AND-SEXUALITY-LESSON-1-M (2).pdf
The Power of Pausing Before You React by Meenakshi Khakat
proper hygiene for teenagers for secondary students .ppt
Attitudes presentation for psychology.pptx
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
THEORIES-PSYCH-3.pptx theory of Abraham Maslow
Understanding the Self power point presentation
Commmunication in Todays world- Principles and Barriers
Quiet Wins: Why the Silent Fish Survives.pdf
Learn about numerology and do tarot reading
Red Light Wali Muskurahat – A Heart-touching Hindi Story

Easy java installation & practice

  • 1. Practice for java beginners Java programming Nooria Esmaelzade 2016
  • 2. Start!!?? Java is a simple programming language. Writing compiling and debugginga program is easy in java.
  • 3. Start programming with java Install JDK (java development kit) Install eclips (IDE)
  • 4. What is JDK & eclips? JDK enables us to develop and run a java program Eclips is the environment where we write the codes
  • 11. Eclips Just unzip the eclips file Right click the zip file and Select extract all
  • 12. Open the extracted file Click this icon
  • 13. Eclips environment Created packages and classes are here Write codes here Display the result here
  • 14. Write the first code inside eclips public class FirstExample { public static void main(String args[]){ System.out.println("I am a student "); } } The program will display “I am a student” as an output
  • 16. JDK (java development kit) It is a software development environment used for developing Java applications and applets. It is a superset of a JRE and javac compiler.
  • 18. Compiler (javac) A compiler is a computer program that transforms source code written in a programming language into another computer language. Java source code Bytecode Compiler
  • 19. JRE (Java Runtime Environment) JVM(Java Virtual Machine) = interpreter A (JVM), interprets compiled (bytecode) for a computer's processor (hardware) JVM JRE
  • 20. Let’s practice how it works!!!
  • 21. Running java code/source code via CMD
  • 22. Make sure if javac (java compiler) is exist. Run CMD and write these commands and click enter
  • 23. The result should be as the following picture So You have java compiler!! This is the directory where the java compiler is located
  • 24. Define the java compiler directory path 1- Open System properties 2- Go to Advanced tab 3- Click ‘Environment variables’ 4- Under ‘System Variables’ scroll down to find PATH. Edit the entry and add JDK path. 5- Click OK and close the windows. Note: you can copy the compiler directory in the previews picture and paste it to variable value.
  • 25. Change the directory. Here the source code is located on desktop. Compile the source file via java compiler(javac) Run the compiled file via jvm Display the result/ output Run test.java program in CMD