CS7 Recitation Cem Akkaya. Outline  Homework-0 in detail  Useful links and tools  Setting up your java environment.

Slides:



Advertisements
Similar presentations
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Advertisements

Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
Slide 1 of 40. Lecture A The Java Programming Language Invented 1995 by James Gosling at Sun Microsystems. Based on previous languages: C, C++, Objective-C,
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Introduction to Java.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
CS0007: Introduction to Computer Programming Setting Up Java.
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Introduction to Java Tonga Institute of Higher Education.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
(C) 2010 Pearson Education, Inc. All rights reserved.  Java programs normally go through five phases  edit  compile  load  verify  execute.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
Programming Concept Chapter I Introduction to Java Programming.
Week 1 - Friday.  What did we talk about last time?  Our first Java program.
Clement Allen, PhD Florida A&M University SUMMER 2006.
CS591x A very brief introduction to Java. Java Developed by Sun Microsystems was intended a language for embedded applications became a general purpose.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Floating point numerical information. Previously discussed Recall that: A byte is a memory cell consisting of 8 switches and can store a binary number.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Object Oriented Programming Lecture 3. Introduction  In discussing Java, some items need to be clarified  The Java programming language  The Java virtual.
Output in Java Hello World!. Structure of a Java Program  All Java files in ICS3U1 have the following structure: class HelloWorld { }  Notice the open.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Preliminaries CS 310: Object-oriented Programming Java API.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
introductory lecture on java programming
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
Programming Fundamentals I Java Programming Spring 2009 XuanTung Hoang Lab 01.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Computer Science I Lab 1 ISMAIL ABUMUHFOUZ | CS 180.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Introduction to java (class and object). Programming languages: –Easier to understand than CPU instructions –Needs to be translated for the CPU to understand.
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.
CS210 Intermediate Computing with Data Structures (Java)
Introduction to.
Ch 1. A Python Q&A Session Bernard Chen 2007.
Intro to Java.
Introduction to Java Dept. Business Computing University of Winnipeg
Getting Started ARCS Lab..
How to Run a Java Program
Introduction to Algorithm Design
Tonga Institute of Higher Education
How to Run a Java Program
How to Run a Java Program
Presentation transcript:

CS7 Recitation Cem Akkaya

Outline  Homework-0 in detail  Useful links and tools  Setting up your java environment

HelloWorld  java is case sensitive  Key words are reserved  main method is the starting point of each application  each statement ends with a semicolon  when you open a brace, you have to close it  the name of the java file has to be exactly the same as the class name (e.g. Hello.java) //HelloWorld program public class Hello { public static void main(String[] args) { System.out.println(“Hello World") ; }

HelloWorld  A program consists of binary instructions, which are executed by CPU  Two steps to transform our source code in machine instructions (machine language) Figure from Java

HelloWorld  Java VM allows the same application (.class files) to run on multiple platforms - platform indepence Figure from Java

Upload Example

Useful Links & Tools  Sun Developer Network ( java.sun.com) java.sun.com API Documentation ( Tutorial ( Google  Integrated Development Environments (IDEs) Eclipse ( NetBeans ( java.sun.com) java.sun.com jGrasp ( Notepad++ ( - not a IDEhttp://notepad-plus.sourceforge.net/

Setting up java environment  Download and install Java SDK from  Update the path environment variable Windows Command Prompt (changes effective for session)  “set path=JAVA_DIR\bin”  “set path= %path%;JAVA_DIR\bin” Windows Control Panel (changes are permanent)  Over Control Panel-Performance and Maintenance- System-Advanced-Environment Variables In Unix systems setting environment variables is shell specific.

Questions ?