CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse

Similar documents
CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth

Eclipse Environment Setup

Appserv Internal Desktop Access Mac OS Device with Safari Browser. Enter your Appserv username and password to sign in to the Website

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Before you get started, make sure you have your section code since you ll need it to enroll. You can get it from your instructor.

Navigate to Cognos Cognos Analytics supports all browsers with the exception of Microsoft Edge.

Instructions PLEASE READ (notice bold and underlined phrases)

The following instructions cover how to edit an existing report in IBM Cognos Analytics.

Navigate to Cognos Cognos Analytics supports all browsers with the exception of Microsoft Edge.

UNIVERSITY OF NORTH TEXAS DEPARTMENT OF LEARNING TECHNOLOGIES SPRING

Guided Tour (Version 3.4) By Steven Castellucci

Cmpt 101 Lab 1 - Outline

At the shell prompt, enter idlde

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Getting Started With UNIX Lab Exercises

e-snaps Online Training Navigation Tutorial

2. Click on the "FREE JAVA DOWNLOAD" button. Note: It will check their PC first and tell them if they have the latest version of Java.

Temple University Computer Science Programming Under the Linux Operating System January 2017

Center for Faculty Development and Support. Google Docs Tutorial

You should see something like this, called the prompt :

What s New in Cognos. Cognos Analytics Participant s Guide

Microsoft FrontPage 2003 The Basics

TIBCO Spotfire DecisionSite Quick Start Guide

Lesson 1: Getting Familiar with Microsoft Word 2007 for Windows

The Command Shell. Fundamentals of Computer Science

Getting Familiar with Microsoft Word 2010 for Windows

Using Microsoft Word. Getting Started With Word. Starting the Program

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta

Lab 1: Setup 12:00 PM, Sep 10, 2017

Oracle Enterprise Manager Oracle Database and Application Testing. Application Testing Suite Lab. Session S318966

Running Sentaurus on the DOE Network

What is VMware View. IMPORTANT: Connecting from Off-Campus. Connecting to View Desktops. Downloading the Client

My Site. Introduction

Placing a Video Call with Zoom PC/Mac

Using the Zoo Workstations

Module 3: Working with C/C++

How to set up an Amazon Work Profile for Windows 8

Code Check TM Software Requirements Specification

How to use Microsoft OneDrive

PowerPoint Essentials 1

Barchard Introduction to SPSS Marks

CSC 101: Lab #1 Introduction and Setup Due Date: 5:00pm, day after your lab session

i2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code

CSCI 201 Lab 1 Environment Setup

Barchard Introduction to SPSS Marks

Flash Video Encoder CS3 Fetch Microsoft Office 2004 (Excel, imovie. Powerpoint, Word, Entourage) itunes

Budget Exercise for Intermediate Excel

Access Gateway Client User's Guide

Enter your Appserv username and password to sign in to the Website

Section 1-3A: Creating a hierarchically numbered list style

CalPlan. Creating a Unit Plan Navigating CalPlan Workbook 1/25/18

ECE QNX Real-time Lab

GeographyPortal Instructor Quick Start World Regional Geography Without Subregions, Fifth Edition Pulsipher

Lab #1: A Quick Introduction to the Eclipse IDE

Microsoft Office 2013 (or Office) is a collection of software programs.

MoCoMotion and

You might think of Windows XP as a set of cool accessories, such as

Where Did My Files Go? How to find your files using Windows 10

SQL Server 2005: Reporting Services

CSE 332: Data Structures and Parallelism Winter 2019 Setting Up Your CSE 332 Environment

New Dropbox Users (don t have a Dropbox account set up with your Exeter account)

IBM DB Getting started with Data Studio Hands-On Lab. Information Management Cloud Computing Center of Competence.

Microsoft Visio 2010

Tutorial 1: Unix Basics

PART 7. Getting Started with Excel

Creating a Website with Publisher 2016

Monroe Township High School AP Computer Science A Summer Packet

Installing Nagios Log Server with VMware Workstation Player

How to Get Started. Figure 3

Student Guide Updated February 22, 2018

1 Getting Started with Linux.

Using the IMS Universal Drivers and QMF to Access Your IMS Data Hands-on Lab

Blackboard Learn: Basics

CS106 Lab 1: Getting started with Python, Linux, and Canopy. A. Using the interpreter as a fancy calculator

Unit III: Working with Windows and Applications. Chapters 5, 7, & 8

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS For IBM System i (5250)

WINDOWS CONFIGURATION

CS-Studio Display Builder

Welcome to the world of .

Word Processing. 2 Monroe County Library System


Windows XP. A Quick Tour of Windows XP Features

Part 1: Understanding Windows XP Basics

Computer Essentials Session 1 Lesson Plan

Practice Labs User Guide

Records and Enrollment Participants Guide

Skills Exam Objective Objective Number

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Microsoft Windows 7 Staff User Guide

Beginner s Guide to Microsoft Excel 2002

Using Microsoft Word. Text Editing

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

How To Upload Your Newsletter

Lab1: Introductory and Setup Activities

San Jacinto College. Secure SSL VPN Instruction Manual. Contents

Introduction. SSH Secure Shell Client 1

Maintain an ILE RPG application using Remote System Explorer

Tutorial 1 Exploring ArcGIS

Transcription:

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse Goals - to become acquainted with the Linux/Gnome environment Overview For this lab, you will login to a workstation running Linux/Gnome with your personal account. You will arrange your screen so that you have a terminal window as shown below. You will create a folder for storing your work for this course. These steps are detailed below. Each step is summarized in bold and then described in more detail. In the second part of this lab, you will type in a Java program and learn to use the Eclipse Integrated Development Environment (IDE). Finally, you will create a small Java program and submit it to your instructor for grading. How to Use the Linux/Gnome Environment Log in: You should see a login panel asking for your user id. Use your University ID and password for logging in. Open Terminal: Although overall this is a graphical interface, you can interact with the system by typing commands. (If you connect to the lab machines over the Internet, you will use a similar terminal interface with typed commands.) Once you get through the login process, you should see a display like the one at the top of the next page (Figure 1). Along the top is a task bar (similar to the task bar that s at the bottom of a Windows -based computer). At the left end of this task bar is the word Activities, and at the right end is your name (along with a couple of icons). If you click on Activities, a toolbar will appear along the left side of the display, containing buttons to launch several important tools (see Figure 2). 1

Figure 1 the standard Linux desktop in our lab. Figure 2 the toolbar (left) and profile menu (right). 2

Click the Terminal icon, which is the top-most icon in the left toolbar. This opens up a new Terminal window like the one shown in Figure 3 below. Figure 3 The Terminal Window You will type commands into this window. If you wish to adjust its size, drag the lower right corner. Many of the mouse gestures work the same under Linux as in Microsoft Windows. However, the main purpose of the terminal window is to allow you to type text commands that perform actions in a Linux system, rather than doing things with a mouse. Notice the prompt message that is displayed in the Terminal: liffick@boole:~$, followed by the prompt symbol (a black rectangle, which should actually be blinking). This basically shows that the terminal is ready for you to type in a command. The next several steps of this lab will all be done within this terminal window. Create and Open 161 Directory: In the terminal, type mkdir 161 (with a space between the mkdir and the 161 ). This will create a new directory (folder) named 161 in your home directory (/home/students/<userid>). Now type ls (for list directory contents this is the letter L followed by the letter S, both in lower case) and you will see your new directory in the list. You will create and modify your programs for this class in your 161 directory. 3

Move to 161 Directory in Terminal: The current directory is displayed as part of your terminal prompt, userid@machine:<working directory>$ The terminal starts at your home directory every time you start a terminal session or log in. You can tell you re in your home directory when the prompt has a ~ (tilde) as the working directory (between the colon and the dollar sign). In order to work with your files for this class in the terminal, you must make sure that the terminal's working directory is 161. Do this by typing cd 161 (for change directory ) at the prompt. You can check what the current working directory is by typing pwd or looking at your prompt. The output of pwd should be /home/students/<userid>/161. Notice the 161 on the end. (Note: if it doesn t say 161 at the end, you aren t in the right directory!) Initializing Eclipse: We will be using the Eclipse integrated development environment (IDE) in this class. To open Eclipse, you can type eclipse & (with a space between) in the terminal window. The & (ampersand) instructs the operating system (in this case, Linux) to run Eclipse in the background, leaving the terminal free for new commands. Alternatively, you could click on the Eclipse icon in the tool bar/launcher panel (if it isn t still showing, click on the Applications button at the top left of the screen). Eclipse will display a window asking for your workspace directory (see Figure 4 below). Delete the word workspace and replace it with 161. The workspace directory should now be /home/students/<userid>/161. Click on the box below that which asks if you want to use this as your default workspace directory, so that this window is not displayed each time that you open Eclipse. 4

Figure 4 Eclipse Workspace Launcher The first time you use Eclipse, it typically starts up with its Welcome window displayed (see the Figure 5 below). Each of the icons in this window give you an introduction to some part of the Eclipse system, except the one on the far right that looks like a downward-turning arrow. 5

Figure 5 Eclipse Welcome Pane That Workbench icon in the upper right of the window will launch the Workbench, or you can just close the Welcome tab in the upper left. Feel free to explore Eclipse by accessing the Overview, Samples, or Tutorials these are good ways to enhance your knowledge about the environment you ll be working in. However, be aware that there are many parts of Eclipse that we won t be using this semester (or at all, since they are meant for professional use). Go ahead and click on the Workbench icon. Your window should now look like Figure 6 below. There are the usual a toolbar and menus across the top, and three panes within the window labeled Project Explorer, Outline, and Task, and a fourth currently unlabeled pane (the largest one visible). You can safely close the Outline pane we won t be using it this semester, and closing it gets it out of your way and leaves more room for the Project Explorer pane. 6

Figure 6 The Eclipse Platform End of Lab 1, Part I. 7