Getting Started With Java Downloading and installing software Running your first program Dr. DwyerFall 2012.

Slides:



Advertisements
Similar presentations
INTRODUCTION Chapter 1 1. Java CPSC 1100 University of Tennessee at Chattanooga 2  Difference between Visual Logic & Java  Lots  Visual Logic Flowcharts.
Advertisements

Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
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.
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to understand.
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.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
Integrated Development Environments. Today We Will: Discuss what IDE’s are used for Go over the Eclipse IDE: –What is Eclipse? –How to install and set.
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.
Tutorial 1 Introduction to Java Programming Bo Chen Department of Computer Science.
Lesson One: The Beginning
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.
15-Jul-15 Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
CS 160: Software Engineering August 27 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
CS0007: Introduction to Computer Programming Setting Up Java.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Getting started with Eclipse By Alexander Butyaev.
CSE 131 Computer Science 1 Module 1: (basics of Java)
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introducing Java.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Android 2: Introduction to the Technology Kirk Scott 1.
Tutorial 11 Installing, Updating, and Configuring Software
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
CSc2010 Lab Fall 2015 Bing Li. Contact  Name : Bing Li   Website : cs.gsu.edu/~bli6  Office : Suntrust.
BIT115 Downloading & Installing the BIT115 Software & Programs.
POS 406 Java Technology And Beginning Java Code
( ) 1 ISYE 7210—Fall 2005 Design of Real-Time Interactive Simulations (in Java) Initial Notes Christine M. Mitchell Director & Professor Center for.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
9/2/ CS171 -Math & Computer Science Department at Emory University.
BlackBerry Application Development 06PLM – Group 7 Andrian Eduard Bangga Ikhsan Baskara Joovanny Pasuhuk Rangga Fajarullah.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Preliminaries CS 310: Object-oriented Programming Java API.
5-Jun-16 Getting Ready for Java. 2 What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made.
29-Nov-15 Getting Ready for Java. 2 What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Page 1 | | ©2009 Installation of Selenium IDE and RC Amit Maheshwari 20 th Sep’10.
The Diagnostic Pathfinder System Introduction Getting Started.
PREZI PRESENTATION Adding files (images, videos, sounds)
You can save your Office documents directly to Google Docs or directly open your online documents in Microsoft Office programs for reading and writing.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
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.
CS 201 Accelerated Introduction to Computer Science LECTURE 1 GEORGE KOUTSOGIANNAKIS 1 Copyright: FALL 2016 Illinois Institute of Technology/ George Koutsogiannakis.
Tips for using Java with Internet Explorer
Downloading & Installing the BIT115 Software & Programs
Welcome to Microsoft Office 365.
The eclipse IDE IDE = “Integrated Development Environment”
Introduction to Eclipse
1. Environment Setting Minhaeng Lee.
Mendeley Download Instructions
Installing OpenRefine
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
How to Run a Java Program
© 2016 Blackboard Inc. All rights reserved..
How to Run a Java Program
Accelerated Introduction to Computer Science
Mendeley Download Instructions
Review of Previous Lesson
Presentation transcript:

Getting Started With Java Downloading and installing software Running your first program Dr. DwyerFall 2012

Objective Set up a development environment on your laptop/desktop and run a program

What tools do you need? Components of the Java language ◦ Tool to test whether your program complies with Java syntax requirements (Java compiler – javac) ◦ Documentation describing what tools are available in Java ◦ Java runtime environment (JRE) – a kind of utility (like a plug-in) that runs Java code on a client (like a laptop or a phone)

Software Development Eclipse – is a tool that makes it easier to develop software Open source Can support other languages besides Java ◦ Editor – for writing code ◦ Support for testing – way to run code, display output, and other tools for fixing programming errors

Software downloads (2 parts) Java Development Kit (JDK) includes JRE – Java Runtime Environment Most recent version Java SE (Standard Edition) 7update 6 Google Java JDK (will include links to instructions) Java SE Downloads

Downloading Eclipse Download “Eclipse IDE for Java Developers” Consult instructions for installation depending on your operating system 32 bit or 64 bit? – doesn’t matter, but 64 bit does not work with Chrome (use Firefox)

Starting Eclipse Select a workspace ◦ This is like “My Documents” for eclipse, a place to keep all files related to your programs ◦ Can keep default or change it to a place easy to find (like the desktop) Step 1: Create a new project (Eclipse menu – File, new, New Java Project)

Create a project What is a project? ◦ Container for a collection of software components ◦ Need a project in order to run code in Eclipse ◦ We will start off with a simple project with one class

Add a Class – right click on project

What is a class? Container for a unit of code Every Java program has at least one class Class name must begin with Capital Check box to create “main” method stub ◦ What if you forget? ◦ Option one – delete the class and add another one with a different name ◦ Option two – need to type “public static ….”

Java program stub

Running a program

Program output

Your Assignment Install Java and Eclipse, run the program in listing 1.1 Take a screenshot of your program after it runs, copy it into a Word document with your name and upload to Blackboard

Recommendations for beginning programmers Practice by typing in examples from the book EXACTLY as you see them Java expects perfection Java does not tolerate sloppy typing LOL! Be humble – if it does not work, something really is wrong

Recommendations cont. Use the Internet – lots of tutorials and videos available Ask your instructor Ask your class mates and other Seidenberg students for help

What if you get stuck? Come to Seidenberg School offices with your laptop and ask tutors or other students for help me for help Use Google and YouTube to find Java/Eclipse videos/tutorials