Review of Previous Lesson

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
11-Jun-15 Getting Ready for CIT Registering and labs If you are not yet registered (and want to be), be sure I have your name and student ID We.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
26-Jun-15 Getting Ready for CIT Labs Lab is scheduled for 3;00-4:30 Fridays in Moore 207 Lab is not in Towne 309 (Registrar has it wrong) Everyone.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
30-Jun-15 Getting Ready for CIT Labs Lab is scheduled for 1:30-3:00 Fridays in Moore 207 Lab is not in Towne 313 (Registrar has it wrong) Everyone.
Lab 1 Instructor: Jolanta Soltis.
Update the PATH variable Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external.
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
Introduction to Java.
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
CS0007: Introduction to Computer Programming Setting Up Java.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
SERVLETS.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Getting Started With Java Downloading and installing software Running your first program Dr. DwyerFall 2012.
Introduction to Java Tonga Institute of Higher Education.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
CS413: Java Programming language Applications Applets
M1G Introduction to Programming 2 4. Enhancing a class:Room.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Java ACO101: Introduction to Computer Science. The History of Java Started out as a research project at Sun Microsystems in 1991 Code named “Green” Based.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
IDEs Department of Information Systems and Computer Science Ateneo de Manila University.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Unit 1 – Web Concepts Instructor: Brent Presley.
ITP 109 Week 2 Trina Gregory Introduction to Java.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
CS-140 Dick Steflik Lecture 3. Java C++ Interpreted optimized for the internet Runs on virtual ized machine Derived from C++ Good object model Widely.
Tips for using Java with Internet Explorer
© copyright Janson Industries 2014
Installing Java on a Home machine
Lecture 1b- Introduction
Component 1.6.
Chapter 2: The Visual Studio .NET Development Environment
Key Ideas from day 1 slides
Topic: Difference b/w JDK, JRE, JIT, JVM
Guide To UNIX Using Linux Third Edition
A451 Theory – 7 Programming 7A, B - Algorithms.
1. Environment Setting Minhaeng Lee.
Instructor: Prasun Dewan (FB 150,
Introduction to Java Dept. Business Computing University of Winnipeg
Installing OpenRefine
TRANSLATORS AND IDEs Key Revision Points.
Installing Java on a Home machine
Setting up Eclipse Locally
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
How to Run a Java Program
Introduction to Algorithm Design
Introduction CSC 111.
How to Run a Java Program
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Java Programming Introduction
Review of Previous Lesson
Java Code Review with CheckStyle
Presentation transcript:

Review of Previous Lesson 31/05/2019 Review of Previous Lesson State as many Vocabulary words and Learning Objectives that you remember from the last lesson as you can. Remember to grade yourself from 0 - 3.

31/05/2019 Introduction to Java

Vocabulary 31/05/2019 Content: Start End state describe common terms software hardware high level language machine code source code compiler

31/05/2019 Vocabulary Content: Start End object code Javac JVM JDK

Learning Objectives 31/05/2019 Content: Start End State and describe common java terms. State what needs to be installed to write, compile and run a Java program.

Software Software Hardware Computer instructions or data. 31/05/2019 Software Computer instructions or data. Makes a computer do something and are written to run on the hardware. Hardware Software

e.g. Visual Basic, Java, C, Fortran 31/05/2019 Software Software is usually written in a high level language which is fairly similar to our own spoken languages. This makes it easier for us humans to use. However, computers only understand machine code which is in binary form (1s and 0s). Hardware High Level Languages e.g. Visual Basic, Java, C, Fortran Machine Code

31/05/2019 Compilers Translate high level languages (the translator’s source code) into machine code (the translator’s object code) which can be executed by a computer. Compiler High Level Languages Machine Code Source Code Object Code written in a high level language. Code in executable form.

Java Compiler Javac Compiler Java Program Bytecode .java file 31/05/2019 Java Compiler Javac Compiler Java Program Bytecode .java file .class file

Java Virtual Machine (JVM) 31/05/2019 Java Virtual Machine (JVM) Executes the Java Bytecode (.class file) produced by Javac Compiler. Each Operating System (OS) e.g. Windows, Mac, Linux etc… has a different JVM to tell the OS what to do in its own machine code language. This is why we call Java a platform (OS) independent language. As any OS can execute a Java program as long as it has a Javac Compiler or it has previously been compiled into Java Bytecode and it has a JVM to execute this Java Bytecode.

Java Runtime Environment (JRE) 31/05/2019 Java Runtime Environment (JRE) Includes: JVM Browser plugins Programs written to add extra features to a browser. Applets support Java programs written to run on web pages. When you have JRE installed on your system, you can run a Java program however you wouldn’t be able to compile a Java program. Needed when you only need to run Java programs on your computer (not compile your own programs).

Java Development Kit (JDK) 31/05/2019 Java Development Kit (JDK) Includes: JRE Compilers Various other tools like JavaDoc, Java debugger etc. JavaDoc: software documentation generator for Java programmers in HTML format (from Java source code). Debugger: A program that assists in the detection and correction of errors in computer programs. In order to create, compile and run Java programs you will need JDK installed on your computer.

Install Java You can get the java from here. 31/05/2019 Remember you need to install the JDK. Recommended: install only the latest version of “8u…”. Later versions (11, 12, ..) are not needed and overcomplicate things for AP CS. Also although it is possible to install multiple versions of JDK/JRE concurrently, it is messy. If you have previous installations of older version(s) of JDK/JRE, un-install ALL of them. Search Windows for "Control Panel" ⇒ "Programs" ⇒ "Programs and Features" ⇒ Un- install ALL programs begin with "Java", such as "Java SE Development Kit ...", "Java SE Runtime ...", "Java X Update ...", and etc. I suggest that you click the back and forward arrows each time you uninstall to make sure you update the installed programs list. If necessary, read "JDK Installation Common Errors". For how to proceed on a Mac please see: https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once It is possible to use an IDE like Eclipse to run java programs but I intend to only use a text editor and command prompt. The Java compiler javac.exe and Java runtime java.exe reside in the "bin" folder of the JDK folder. So to run JDK programs from the command prompt, it needs to be told to also search this folder for executable programs. This is done by adding this “bin” folder to what is known as the “Path”. Please follow the instructions on the next 5 slides to do this. For how to proceed on a Mac please see: https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once Navigate to the folder which contains the JDK's programs. Click the yellow folder icon in the address bar. Copy the address for pasting later.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once Click Windows for: environment variables Click Edit the system environment variables. 2 1 If you are using an older version of Windows or for whatever reason cannot do this, please see the next slide.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you are using an older version of Windows or for whatever reason cannot do the instructions on the previous slide, use the Control Panel (Start Menu - Windows System). 2 3 1

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you cannot do slide 16 only.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you cannot do slide 16 only.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you cannot do slide 16 only.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you cannot do slide 16 only.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once Click Path and Edit.

Permanent Java path setup guide - 1st time use only, this only needs to be done once 31/05/2019 Read the following 3* before actually completing as there is no undo! Do NOT delete "Variable value" field. Otherwise, some existing applications may not run. To be SAFE, copy the content of the "Variable value" and paste to somewhere before changing it!!! Click at the beginning of the existing contents to get a cursor and paste the address that you copied earlier (Ctrl + v), of the “bin” folder, followed by a ; Click OK * 2 (this & the previous “Environment Variables” windows). If you don’t see the above, try the next slide.

31/05/2019 Permanent Java path setup guide - 1st time use only, this only needs to be done once If you didn’t see the screenshot on the previous slide, you should see this one. 1 2 Paste the address that you copied earlier (Ctrl + v), of the “bin” folder. Click OK * 2 (this & the previous “Environment Variables” windows).

5/31/2019 Grade yourself Grade yourself on the vocabulary and learning objectives of the presentation.