0
Java ProgrammingLanguage Overview                   Bok, Jong Soon          Jongsoon.bok@gmail.com              www.javaex...
What is Java Technology? Is a programming language. Is a platform.
Java Programming Language Is one of today’s most popular software- development languages. Is used not only for Web program...
The Java Platform Platform : The hardware or software environment in which a program runs. Has two components:   The Java ...
The Java Platform (Cont.) - JRE Java Runtime Environment Provides the backbone for running Java application. Is a collecti...
The Java Platform (Cont.) - JDK Java Development Kit Provides all of the components and necessary resources to develop Jav...
The Java Platform (Cont.) - JDK  Download the most recent version at  http://java.sun.com  Download older versions at  htt...
Java SE Code NamesVersion              Code Name    Release DateJDK 1.1.4            Sparkler     1997. 10. 11JDK 1.1.5   ...
The Origin of the Java ProgrammingLanguage  Originally named Oak, designed in 1991.  Main team members : Bill Joy, Patrick...
Java Language Features•   Simple             • Architecture neutral•   Object-Oriented • Portable•   Distributed        • ...
Figure 1.1 J2SE vs. J2EE vs. J2ME
Figure 1.2 Java SE 6 Platform at a Glance      ※ http://java.sun.com/javase/technologies/index.jsp
Programming the First Java codeTo write your first program, you need:  The JavaTM 6 Platform, Standard Edition.    Downloa...
Downloading JDK 6 Update 23 forWindows Platform Connect to http://java.sun.com/
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Installing JDK 6
Installing JDK 6 (Cont.)
Installing JDK 6 (Cont.)
Installing JDK 6 (Cont.)
Installing JDK 6 (Cont.)
Configuring JDK Environment
Configuring JDK Environment (Cont.)
Configuring JDK Environment (Cont.)
Configuring JDK Environment (Cont.)
Configuring JDK Environment (Cont.)
Testing JDK Environment
Testing JDK Environment (Cont.) Connect to http://java.com/ko/download/installed.jsp
Downloading SDK Documentation Connect to http://www.oracle.com/technetwork/java/javase/downloads/index.html
Downloading SDK Documentation(Cont.)
Downloading SDK Documentation(Cont.)
Downloading SDK Documentation(Cont.)
Unzipping SDK Documentation
Moving SDK Documentation
Registering SDK Documentation onWindows XP
Registering SDK Documentation onWindows XP (Cont.)
Registering SDK Documentation onWindows XP (Cont.)
Registering SDK Documentation onWindows XP (Cont.)
Downloading JDK 6 Update 23 forLinux Platform
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Downloading JDK 6 (Cont.)
Installation JDK 6
Installation JDK 6 (Cont.)
Installation JDK 6 (Cont.)
Moving JDK 6
Configuration JDK 6 (Cont.)
Configuration JDK 6 (Cont.)
JDK , API Specifications Java Software Development Kit (JDK)   J2SE 6.0   J2SE 5.0   J2SE 1.4.2 API Specifications   J2SE ...
Text Editor vi Notepad
Text Editor - UltraEdit UltraEdit-32 v15.10 (http://www.ultraedit.com/) – shareware, 14.64MB
Text Editor - AcroEdit AcroEdit v0.9.20.92 – (http://www.acrosoft.pe.kr/) – Freeware, 4.08MB
Text Editor - EditPlus EditPlus v3.11 – (http://www.editplus.com/) – Shareware, 1.00MB
Java Text Editor - JavaEditor Java-Editor v9.00 (http://lernen.bildung.hessen.de/informatik/javaedito r/index.htm )
Java Text Editor – JCreator JCreator Pro v4.50 (http://www.jcreator.com/)
Java Text Editor - eclipse Eclipse v3.5 (http://www.eclipse.org/)
Java Text Editor - IntelliJ IntelliJ IDEA 7.0 (http://www.jetbrains.com/)
IDE Tools - NetBeans NetBeans IDE 6.5 (http://www.netbeans.org/)
IDE Tools - JBuilder JBuilder 2008 (http://www.borland.com/)
IDE Tools - JDeveloper Jdeveloper 11g (http://www.oracle.com/technology/products/jdev/index.html/)
Etc Tools  Code Warrior by Metrowerks :  http://www.metrowerks.com  TextPad Editor : http://www.textpad.com  JEdit : http:...
Java Programming DevelopmentProcess
Java Programming DevelopmentProcess (Cont.)1. Create a source file2. Compile the source file into a bytecode file3. Run th...
Creating a Source Code –HelloWorld.java
Compiling the Source Code –HelloWorld.java Java Compiler – javac.exe
Interpreting the bytecode –HelloWorld.class  Java Interpreter – java.exe
Command Line Tools JDK provides several command-line tools. Commonly used tools is a compiler, launcher/interpreter, archi...
Command Line Tools - Compiler Translates Java source files into Java bytecode. Creates a bytecode file with the same name ...
Command Line Tools - Interpreter Handles the program execution, including launching the application. java [-options] class...
Command Line Tools - Packager JAR, Java Archive, utility is an archiving and compression tool. Used to combine multiple fi...
Command Line Tools – JARExecution     Can be created to be executable.     Specifies the file within the JAR where the ‘ma...
Figure 1.3. shows an examples of this basiccommunication.Applications: Text editor   Browser                  Operating sy...
Figure 1.4. Computer CommunicationProblemApplications: Text editor   Browser   Other apps                  Operating syste...
How Java Technology Solves theCommunication Problem Uses compiling and interpretation. A little slower than compiled progr...
Figure 1.5. How the JVM Interacts With theOperating System and Java Applets                           Applets         Java...
Java API Documentation Detailed information API Very valuable resource: download,or view online at: http://java.sun.com/ja...
Figure 1.6. Java 2 Platform Specification,java.lang Package, Boolean Class
Additional Resource Java Technology : An Early History   http://java.sun.com/features/1998/05/birthday.html Java Technolog...
Upcoming SlideShare
Loading in...5
×

Chapter 1. java programming language overview

7,018

Published on

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
7,018
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
424
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Transcript of "Chapter 1. java programming language overview"

  1. 1. Java ProgrammingLanguage Overview Bok, Jong Soon Jongsoon.bok@gmail.com www.javaexpert.co.kr
  2. 2. What is Java Technology? Is a programming language. Is a platform.
  3. 3. Java Programming Language Is one of today’s most popular software- development languages. Is used not only for Web programming, but also for developing standalone applications across platforms on servers, desktops, and mobile devices, even control the robotic rover that rolled on Mars. Is a high-level language.
  4. 4. The Java Platform Platform : The hardware or software environment in which a program runs. Has two components: The Java Virtual Machine The Java Application Programming Interface (API) From : [Java Pocket Guide], Robert Liguori ; Patricia Liguori, O’Reilly, 2008, 978-0-59-651419-8, p191
  5. 5. The Java Platform (Cont.) - JRE Java Runtime Environment Provides the backbone for running Java application. Is a collection of software. Allows a computer system to run a Java application. Consists of JVMs, Java Virtual Machines, interpret Java bytecode into machine code. Standard class libraries User interface toolkits A variety of utilities.
  6. 6. The Java Platform (Cont.) - JDK Java Development Kit Provides all of the components and necessary resources to develop Java applications. Is a programming environment for compiling, debugging, and running Java applets, applications, and Java Beans. Includes the JRE, Java Programming language, development tools and tool APIs. Supports Linux, Solaris, and Microsoft Windows. Refer to http://java-virtual-machine.net/other.html
  7. 7. The Java Platform (Cont.) - JDK Download the most recent version at http://java.sun.com Download older versions at http://java.sun.com/products/archiveJava Development Kits Codename ReleaseJava SE 6 with JDK 1.6.0 Mustang 2006Java 2 SE 5.0 with JDK 1.5.0 Tiger 2004Java 2 SE with SDK 1.4.0 Merlin 2002Java 2 SE with SDK 1.3 Kestrel 2000Java 2 with SDK 1.2 Playground 1998 Table 1-1. Java Development Kits
  8. 8. Java SE Code NamesVersion Code Name Release DateJDK 1.1.4 Sparkler 1997. 10. 11JDK 1.1.5 Pumpkin 1997. 11. 03JDK 1.1.6 Abigail 1998. 04. 24JDK 1.1.7 Brutus 1998. 09. 28JDK 1.1.8 Chelsea 1999. 04. 08J2SE 1.2 Playground 1998. 11 04J2SE 1.2.1 (none) 1999. 03. 30J2SE 1.2.2 Cricket 1999. 07. 08J2SE 1.3 Kestrel 2000. 08. 05J2SE 1.3.1 Ladybird 2001. 05. 17J2SE 1.4.0 Merlin 2002. 02. 13J2SE 1.4.1 Hopper 2002. 09. 16J2SE 1.4.2 Mantis 2003. 06. 26Java SE 5.0(1.5.0) Tiger 2004. 09. 29Java SE 6.0(1.6.0) Mustang 2005. 11. 20Java SE 7.0(1.7.0) Dolphin yet
  9. 9. The Origin of the Java ProgrammingLanguage Originally named Oak, designed in 1991. Main team members : Bill Joy, Patrick Naughton, Mike Sheridan, James Gosling. Original goal : use in embedded consumer electronic appliances. In 1994, team realized Oak was perfect for Internet. In 1995, renamed Java, was redesigned for developing Internet applications. Announced in May 23 in 1995 at SunWorld’95. First non-beta release January 23 in 1996. Refer to http://java.sun.com/features/2000/06/time- line.html See also http://java.sun.com/features/1998/05/birthday.html
  10. 10. Java Language Features• Simple • Architecture neutral• Object-Oriented • Portable• Distributed • High performance• Multithreaded • Robust• Dynamic • Secure• Write Once, Run AnywhereTM• http://java.sun.com/docs/white/langenv/
  11. 11. Figure 1.1 J2SE vs. J2EE vs. J2ME
  12. 12. Figure 1.2 Java SE 6 Platform at a Glance ※ http://java.sun.com/javase/technologies/index.jsp
  13. 13. Programming the First Java codeTo write your first program, you need: The JavaTM 6 Platform, Standard Edition. Download the JDK, not the JRE. Download API Specifications & Documentation. Consult the installation instructions . A Text Editor. IDE (Integrated Development Environment) tools - Option
  14. 14. Downloading JDK 6 Update 23 forWindows Platform Connect to http://java.sun.com/
  15. 15. Downloading JDK 6 (Cont.)
  16. 16. Downloading JDK 6 (Cont.)
  17. 17. Downloading JDK 6 (Cont.)
  18. 18. Downloading JDK 6 (Cont.)
  19. 19. Downloading JDK 6 (Cont.)
  20. 20. Installing JDK 6
  21. 21. Installing JDK 6 (Cont.)
  22. 22. Installing JDK 6 (Cont.)
  23. 23. Installing JDK 6 (Cont.)
  24. 24. Installing JDK 6 (Cont.)
  25. 25. Configuring JDK Environment
  26. 26. Configuring JDK Environment (Cont.)
  27. 27. Configuring JDK Environment (Cont.)
  28. 28. Configuring JDK Environment (Cont.)
  29. 29. Configuring JDK Environment (Cont.)
  30. 30. Testing JDK Environment
  31. 31. Testing JDK Environment (Cont.) Connect to http://java.com/ko/download/installed.jsp
  32. 32. Downloading SDK Documentation Connect to http://www.oracle.com/technetwork/java/javase/downloads/index.html
  33. 33. Downloading SDK Documentation(Cont.)
  34. 34. Downloading SDK Documentation(Cont.)
  35. 35. Downloading SDK Documentation(Cont.)
  36. 36. Unzipping SDK Documentation
  37. 37. Moving SDK Documentation
  38. 38. Registering SDK Documentation onWindows XP
  39. 39. Registering SDK Documentation onWindows XP (Cont.)
  40. 40. Registering SDK Documentation onWindows XP (Cont.)
  41. 41. Registering SDK Documentation onWindows XP (Cont.)
  42. 42. Downloading JDK 6 Update 23 forLinux Platform
  43. 43. Downloading JDK 6 (Cont.)
  44. 44. Downloading JDK 6 (Cont.)
  45. 45. Downloading JDK 6 (Cont.)
  46. 46. Downloading JDK 6 (Cont.)
  47. 47. Downloading JDK 6 (Cont.)
  48. 48. Downloading JDK 6 (Cont.)
  49. 49. Downloading JDK 6 (Cont.)
  50. 50. Installation JDK 6
  51. 51. Installation JDK 6 (Cont.)
  52. 52. Installation JDK 6 (Cont.)
  53. 53. Moving JDK 6
  54. 54. Configuration JDK 6 (Cont.)
  55. 55. Configuration JDK 6 (Cont.)
  56. 56. JDK , API Specifications Java Software Development Kit (JDK) J2SE 6.0 J2SE 5.0 J2SE 1.4.2 API Specifications J2SE 6.0 J2SE 5.0 J2SE 1.4.2
  57. 57. Text Editor vi Notepad
  58. 58. Text Editor - UltraEdit UltraEdit-32 v15.10 (http://www.ultraedit.com/) – shareware, 14.64MB
  59. 59. Text Editor - AcroEdit AcroEdit v0.9.20.92 – (http://www.acrosoft.pe.kr/) – Freeware, 4.08MB
  60. 60. Text Editor - EditPlus EditPlus v3.11 – (http://www.editplus.com/) – Shareware, 1.00MB
  61. 61. Java Text Editor - JavaEditor Java-Editor v9.00 (http://lernen.bildung.hessen.de/informatik/javaedito r/index.htm )
  62. 62. Java Text Editor – JCreator JCreator Pro v4.50 (http://www.jcreator.com/)
  63. 63. Java Text Editor - eclipse Eclipse v3.5 (http://www.eclipse.org/)
  64. 64. Java Text Editor - IntelliJ IntelliJ IDEA 7.0 (http://www.jetbrains.com/)
  65. 65. IDE Tools - NetBeans NetBeans IDE 6.5 (http://www.netbeans.org/)
  66. 66. IDE Tools - JBuilder JBuilder 2008 (http://www.borland.com/)
  67. 67. IDE Tools - JDeveloper Jdeveloper 11g (http://www.oracle.com/technology/products/jdev/index.html/)
  68. 68. Etc Tools Code Warrior by Metrowerks : http://www.metrowerks.com TextPad Editor : http://www.textpad.com JEdit : http://www.jedit.org JGrasp : http://www.jgrasp.org BlueJ : http://www.bluej.org DrJava : http://drjava.sourceforge.net
  69. 69. Java Programming DevelopmentProcess
  70. 70. Java Programming DevelopmentProcess (Cont.)1. Create a source file2. Compile the source file into a bytecode file3. Run the program contained in the bytecode file
  71. 71. Creating a Source Code –HelloWorld.java
  72. 72. Compiling the Source Code –HelloWorld.java Java Compiler – javac.exe
  73. 73. Interpreting the bytecode –HelloWorld.class Java Interpreter – java.exe
  74. 74. Command Line Tools JDK provides several command-line tools. Commonly used tools is a compiler, launcher/interpreter, archiver, documenter. Refer to http://java.sun.com/javase/6/docs/technotes/tools
  75. 75. Command Line Tools - Compiler Translates Java source files into Java bytecode. Creates a bytecode file with the same name as the source file but with the .class extension. javac [-options] [source files] javac HelloWorld.java javac –cp ./dir/classes/ HelloWorld.java javac –d ./opt/hwapp/classes HelloWorld.java javac –source 1.4 HelloWorld.java javac –version javac –help Refer to http://www.javaexpert.co.kr/entry/22 Refer to http://pllab.kw.ac.kr/j2seAPIs/tooldocs/windows/java.html
  76. 76. Command Line Tools - Interpreter Handles the program execution, including launching the application. java [-options] class [arguments…] or java [-options] –jar jarfile [arguments…] java HelloWorld java –cp .:./dir/Classes HelloWorld java –ea HelloWorld java –version java –help javaw <classname> Refer to http://javaexpert.co.kr/entry/23 Refer to http://pllab.kw.ac.kr/j2seAPIs/tooldocs/windows/java.html
  77. 77. Command Line Tools - Packager JAR, Java Archive, utility is an archiving and compression tool. Used to combine multiple files into a single file called a JAR file. JAR consists of a ZIP archive containing a manifest file (JAR content describer) and optional signature files (for security). jar [options] [jar-file] [manifest-files] [entry-point] [-C dir] files… jar cf files.jar HelloWorld.java kr/co/javaexpert/HelloWorld.class jar tfv files.jar jar xf files.jar Refer to http://javaexpert.co.kr/entry/24 Refer to http://pllab.kw.ac.kr/j2seAPIs/tooldocs/windows/jar.html
  78. 78. Command Line Tools – JARExecution Can be created to be executable. Specifies the file within the JAR where the ‘main’ class resides. Refer to http://javaexpert.co.kr/entry/251. Compile .java file with package option.2. Create a file Manifest.txt using editor.3. Create a JAR file that adds the Manifest.txt contents to the manifest file, MANIFEST.MF.4. Display the contents of the JAR file.5. Execute the JAR file using java –jar option.
  79. 79. Figure 1.3. shows an examples of this basiccommunication.Applications: Text editor Browser Operating system Hardware
  80. 80. Figure 1.4. Computer CommunicationProblemApplications: Text editor Browser Other apps Operating system Hardware
  81. 81. How Java Technology Solves theCommunication Problem Uses compiling and interpretation. A little slower than compiled programs, but runs on any operating system. Compiles source code to bytecode. Uses Java virtual machine (JVMTM), interprets bytecode. Uses a different JVM for every operating system.
  82. 82. Figure 1.5. How the JVM Interacts With theOperating System and Java Applets Applets Java apps Applications: Text editor JVM Browser JVM Operating system Hardware
  83. 83. Java API Documentation Detailed information API Very valuable resource: download,or view online at: http://java.sun.com/javase/6/docs/api/index.html
  84. 84. Figure 1.6. Java 2 Platform Specification,java.lang Package, Boolean Class
  85. 85. Additional Resource Java Technology : An Early History http://java.sun.com/features/1998/05/birthday.html Java Technology In The Real World http://java.sun.com/nav/used/index.html
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×