1 / 13

Topic 1 – Introduction to CISC370

Topic 1 – Introduction to CISC370. High thoughts must have high language. Use and Distribution Notice. Possession of any of these files implies understanding and agreement to this policy.

radley
Download Presentation

Topic 1 – Introduction to CISC370

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Topic 1 – Introduction to CISC370 High thoughts must have high language.

  2. Use and Distribution Notice • Possession of any of these files implies understanding and agreement to this policy. • The slides are provided for the use of students enrolled in Jeff Six's Object Oriented Programming with Java class (CISC 370) at the University of Delaware. They are the creation of Mr. Six and he reserves all rights as to the slides. These slides are not to be modified or redistributed in any way. All of these slides may only be used by students for the purpose of reviewing the material covered in lecture. Any other use, including but not limited to, the modification of any slides or the sale of any slides or material, in whole or in part, is expressly prohibited. • Most of the material in these slides, including the examples, is derived from multiple textbooks. Credit is hereby given to the authors of these textbook for much of the content. This content is used here for the purpose of presenting this material in CISC 370, which uses, or has used, these textbooks.

  3. About Me Jeffrey A. Six (Jeff) jeffsix@udel.edu / http://www.cis.udel.edu/~six/Teaching Adjunct Faculty; University of Delaware, Computer Science Security Architect; Legg Mason • MEE and BCpE, University of Delaware • Currently pursing MBA, Loyola College in Maryland • Eight years working computer and network security for DoD • Interests (Professional) • Computer and network security • Project management and process optimization • Technical education • Interests (Other) • Triathlon, SCUBA diving, other outdoor sports • Lifeguarding instructor • Family • 1 wife, 1 cat

  4. What is Java? • Java refers to three principal things: • The Java Virtual Machine. This is a computer, usually specified in software. Different “versions” of this computer exist for all of the platforms Java supports. This is the key to cross-platform programs. • The Java Programming Language. This is the actual programming language. This language is entirely object oriented, and is quite similar to C++.

  5. What is Java? • The Java Class Libraries. This refers to the pre-defined classes that are included with the Java 2 Software Development Kit (SDK) and the Java 2 Runtime Environment (JRE). These are similar in purpose to library functions, included with ANSI C. • Combined, these three components allow rapid development of GUI and non-GUI programs, that run across platforms without recompilation.

  6. What will be covered in this course? • In this course, we will focus on the Java programming language and the class libraries. The JVM is an interesting topic, but requires a background in computer engineering to fully understand. A knowledge of this virtual machine is also not necessary to program or use Java effectively.

  7. The Traditional Development Cycle • In traditional programming languages, the program is written (source code), compiled into object code, and then linked into an executable program. Once the program is compiled and linked, the executable can then be run on the platform it was compiled on. Note that if you want to then run the program on another platform, you have to recompile the source code on the other platform (after modifying it extensively, in some cases).

  8. The Java Development Cycle • In Java, the program is written (source code), and then compiled into Java bytecode. A Java source code file has a .java extension. • The bytecode is similar to assembly code that runs on the Java Virtual Machine. A bytecode file has a .class extension. • When you want to run the program, you run the virtual machine, which then runs the compiled program.

  9. The Java Development Cycle • Regardless of which platform you compile the program into bytecode on, any Java virtual machine can then run that bytecode. • Therefore, if you write a Java program on a computer running Solaris and compile it to Java bytecode using the Solaris SDK, the resulting bytecode can be run by a JVM on Windows, Solaris, Linux, etc…

  10. The Java Development Cycle Source Code (.java file) Java Bytecode (.class file) javac Java Compiler Running! java Java Virtual Machine

  11. The Java Development Kit • The Java 2 SDK, provided for free by Sun Microsystems, contains a Java compiler, a Java Virtual Machine, and the class libraries. • javac – the Java compiler • java – the Java Virtual Machine

  12. The Java 2 Software Development Kit • The Java 2 SDK has been installed on the University of Delaware central servers (the composers – no, not copland). • The files should be reachable using a default path. If not, you can add the following directory to your path to make things work: /usr/j2se/bin

  13. The Java 2 Software Development Kit • Once this is done, you can compile and run Java programs from the Unix prompt: • Compile the program: javac TestProgram.java This produces TestProgram.class. • Run the bytecode: java TestProgram This starts the JVM and runs the bytecode.

More Related