A Short DOS Presentation

Slides:



Advertisements
Similar presentations
File management GAP Toolkit 5 Training in basic drug abuse data management and analysis Training session 2.
Advertisements

Macintosh OS X. What is an operating system? O Like cars, computers have operating systems (sometimes abbreviated OS). O A computer operating system is.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
6 th Grade Computers 1. ____________________ is the keyboard shortcut for undo. a) “Ctrl” + “C” b) “Ctrl” “Y” c) “Ctrl” + “B” d) “Ctrl” + “Z” 2.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
How to Create a Java program CS115 Fall George Koutsogiannakis.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Scite Scintilla integrated text editor. Click here.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Introduction to Java.
CS0007: Introduction to Computer Programming Setting Up Java.
Systems Software Operating Systems.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Introduction to Java Tonga Institute of Higher Education.
Computer Systems Week 10: File Organisation Alma Whitfield.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
How Java Programs Work MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation ©Akhilesh.
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Chapter 1© copyright Janson Industries Java ▮ Java programming concepts ▮ Downloading the JDK ▮ Java coding and executing example This presentation.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
1 CSC204 – Programming I Lecture 2 Intro to OOP with Java.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
DOS and the Command Line CS 21a: Introduction to Computing I First Semester,
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Operating Systems. An operating system (os) is a software program that enables the computer hardware to communicate and operate with the computer software.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
 CSC 215 : Procedural Programming with C C Compilers.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Lecture 1b- Introduction
UNDERSTANDING YOUR COMPUTER
Programming languages
Key Ideas from day 1 slides
Appendix A Barb Ericson Georgia Institute of Technology May 2006
An Introduction to Computers and Visual Basic
Basic operations in Matlab
Programming without BlueJ Week 12
Java programming lecture one
Perl A simple test.
An Introduction to Computers and Visual Basic
Operating Microcomputer
Chapter 1: Introduction to SAS
Computer Science I CSC 135.
CREATING, PRINTING, AND EDITING DOCUMENTS
Introduction to Algorithm Design
Java Intro.
Run Java file with Window cmd
An Introduction to Computers and Visual Basic
How Java Program Executes
Scripts In Matlab.
Computer Programming-1 CSC 111
Review of Previous Lesson
Workshop for Programming And Systems Management Teachers
Presentation transcript:

A Short DOS Presentation Review

PCs before Windows DOS Text based operating system Disk Operating System Text based operating system No mice allowed!

DOS 101 Documents are stored in files Files are stored in directories In the Windows & Mac worlds, these are called "Folders" Directories are stored on disks Usually denoted with an upper case letter, followed by a colon A: B: C:

Getting to DOS

The DOS Window

Before we get started, here are two useful commands While in DOS, this key will allow you to repeat the last action doskey This DOS function remembers all your commands You use the up & down arrow keys to access them

Getting to doskey

Clearing the screen

Getting to the Floppy drive

Looking Around Short File Name Long File Name Size Date/Time Disk Information

Compiling & Running Java

Program Development Integrated Development Environment Many tools available Writing, compile, debugging source code “friendly” Can be expensive Command-line tool Java Development Kit Free!! http://java.sun.com/ Look for most recent version

Edit You can use either a Java IDE, or Windows notepad to develop your code

javac myClassName.java Compile We use DOS and the Java compiler to create bytecode that can be interpreted The command to compile the program There are, of course, many variations on this command. We'll see some over the time, the rest are in the documentation javac myClassName.java

The .java file is plain text We use the file extension here.

When we run javac, the .class file is automatically created

Load, Verify, Execute java myClassName These three phases take place all at once To execute the class file, we type: There are, of course, many variations on this command. We'll see some over the time, the rest are in the documentation java myClassName

We don't use the file extension here!

Saving your output to a text file We would like to save our output to a file We do this from a DOS window using the "redirect" command: java myClassName > myClassNameOUT.txt The “redirect” symbol is the “greater than” symbol on your keyboard – usually located above the period (“.”)

Using your output file Or You can use the DOS command "type" to see what is in your file Note – You can not print directly from DOS in the labs Or You can open WordPad, notepad, or other word processor and read the file directly Using this method, you can also print your file.