Training Java - Lesson1

  • 398 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
398
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
13
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Lesson1: OVERVIEW
    • What is JAVA
    • How it works
    • Development environment
    • HelloWorld example
    • Summary
  • 2. What is Java
    • Not only a programming language, it is software development platform which:
      • covers a high-level programming language
      • Can run on multi-platform like:Window, Mac, Linux..
      • Implements completely OO
      • … .
  • 3. What is Java
  • 4. How is works HelloWorld.java compile HelloWorld.class Window Linux MAC JMV
  • 5. Development environment tools Libs+JVM
  • 6. Development Environment
    • $PATH variable
      • It is the system-path which used to fast access to one program in the system.
    • Edit $PATH to using java’s tools
      • add the path of bin sub-folder of the java root folder on the end of $PATH, after putting ‘ ; ’ symbol
      • Ex: $PATH ; C:ProgramFilesJavajdk1.5.0_22in
  • 7. HelloWorld example
    • Open the notepad, then type the following code:
    • Save it to file named: HelloWorld.java, for exam: D: empjavatutorHelloWorld.java
  • 8. Compile HelloWorld.java
    • Open cmd, move to D: empjavatutor
    • Type following command:
      • javac HelloWorld.java
    • After completion, run HelloWorld by executing the command:
      • java HelloWorld
  • 9. HelloWorld result
  • 10. Summary
    • Java is not only programming language, it is software development platform
    • Java can run on every OS with once writing and completion code.