Installing Java on a Home machine

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

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
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.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
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.
Course: Introduction to Computers
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
1 Chapter-01 Introduction to Computers and C++ Programming.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
Introducing Java.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Topics Introduction Hardware and Software How Computers Store Data
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Introduction to Computer Systems and the Java Programming Language.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Installing Java on a Home machine For Windows Users: Download/Install: Go to downloads html.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Chapter 1 An Overview of Computers and Programming Languages.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Software Engineering Algorithms, Compilers, & Lifecycle.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Topic 2: Hardware and Software
What Do Computers Do? A computer system is
Development Environment
Topics Introduction Hardware and Software How Computers Store Data
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Chapter 1 Introduction to Computers, Programs, and Java
Lecture 1: Introduction to JAVA
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Getting Started Chapter 1 Copyright © 2000 W. W. Norton & Company.
A451 Theory – 7 Programming 7A, B - Algorithms.
Java programming lecture one
Introduction to Java Dept. Business Computing University of Winnipeg
TRANSLATORS AND IDEs Key Revision Points.
Translators & Facilities of Languages
Installing Java on a Home machine
Computer Science I CSC 135.
Chapter 1: An Overview of Computers and Programming Languages
Topics Introduction Hardware and Software How Computers Store Data
Chapter 1 Introduction(1.1)
Introduction to Computer Programming
Chapter 1: Programming Basics, Python History and Program Components
Computer Programming-1 CSC 111
Review of Previous Lesson
Programming language translators
Programming Logic and Design Eighth Edition
Presentation transcript:

Installing Java on a Home machine For Windows Users: Download/Install: Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Accept License Agreement and then download the file named “jdk-8u102-windows-i586.exe”. Save the file to the desktop and run it. The installer will install Java to: C:\Program Files\Java\jdk1.8.0_102\ Once the installer is finished, you must set your computer's path before Java will work correctly.

Installing Java on a Home machine (cont’d) Setting the Path: Go to the Control Panel and double-click System Select the Advanced tab Click on the Environment Variables button Look under System Variables for "Path" Click on "Path" and then click edit Add the following to the end of the Path ; C:\Program Files\Java\jdk1.8.0_102\bin Click OK. Click the "New" button. For the variable name, type: CLASSPATH For the value, type: .; NOTE: The above value in words is period semicolon; it is not a misprint. Click OK. Exit out of all the open windows

Installing Java on a Home machine (cont’d) To test if java is installed correctly: Open up a command prompt To do this click on Start and then Run Type in cmd.exe and click Ok Type java and hit enter If you see something like "command not found", then java is not installed correctly Otherwise you should see a list of options for running java

Developing a programming skill Learning to program a computer Training yourself to solve problems in a very detailed and organized manner You are already experienced in Intuitive problem solving Need to develop programming skill Write a problem solution IN terms of actions appropriate for a computer

Computer organization Computer system Hardware physical, tangible pieces such as chips, wires, and so on Useless without instructions to tell them what to do Driven by a series of instructions, in other words programs Software Programs and the data those programs use Intangible counterpart to the physical hardware components

Computer hardware Most computer have four major hardware parts Central Processing Unit (CPU): brain of the computer executes individual commands of a program Input/output devices allow human beings to interact with a computer Memory stores programs and data while being processed by CPU

Computer hardware (cont’d) Memory Input devices Output devices CPU

What is programming Computers performs tasks more efficiently, quickly, and accurately than we could by hand However, to be useful it must be programmed Computer programming: Devise a set of instructions to be executed by a computer In order to solve a given real world problem

How do we write a program? It is a two phase process Analysis and specification General solution (Algorithm) Verify Problem-Solving Phase Concrete solution (Program) Test Implementation Phase Maintenance Phase

Algorithm implementation JAVA code Peter’s JAVA code Algorithm C++ code Algorithm Nell’s JAVA code Ada code John’s JAVA code Algorithm translated into different languages Algorithm translated by different people

Programming shortcut Problem Shortcut? Think first and code later Problem Solving Phase (Algorithm) Problem Shortcut? Implementation Phase (code) Think first and code later

JAVA program execution convert Java code to a form usable by computers provided that in a computer instructions and data are stored in the computer memories using binary codes In a computer, data represented by pulses of electricity On circuit => ‘1’; Off circuit => ‘0’ Data in binary form => combination of enough 1s and 0s Program execution means translating data and instructions to patterns of 1s and 0s.

Programming language levels Machine language Primitive instruction built into each machine Each type of CPU has its own language Binary based instructions => tedious process and prone to error Assembly language Short English like words for commands and data Tedious to use Both are considered to be low level languages

Programming language levels (cont’d) High level language Expressed in English like phrases Easier to read and write High level Language Assembly Language Machine Language a+b ld [%fp-20] %o0 1101 000 0000 0111 ld [%fp-20] %o1 add %o0, %o1 1101 0010 0000 0111 1011 1111 1110 1000

Program development Software tools involved Editor: type a program and store in a file Translation from high level into executable form That translation may result in errors You change the code to fix the problem Execute the program and evaluate results errors errors Edit and save program Translate program Execute program

Compilers Translation into machine language Compiler: Translates code in one language to equivalent code in another one Original code => source code, Target language => particular machine language Translate once and run whenever needed

Interpreters Translation into machine language Interpreter similar to compiler with some differences Interweaves the translation and execution Parts of the source code are translated and executed one at a time Drawback: Programs run more slowly, as translation occurs during execution

JAVA translation and execution The process combines the use of a compiler and interpreter Java source code -> Bytecode (Java compiler) JAVA virtual machine reads bytecode and executes it Difference between Bytecode and machine language Bytecode is not tied to any particular processor type It makes JAVA architecture neutral => portable

JAVA translation and execution (cont’d) Source code JAVA bytecode JAVA compiler JAVA interpreter Bytecode compiler Machine code