Training Java - Lesson1

643 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
643
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Training Java - Lesson1

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

×