Do this by creating on the m: drive (Accessed via start menu link Computer [The m: drive has your login id as name]) the subdirectory CI101.

Similar documents
1. The Apache Derby database

CI228 CI228 Tutorials

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

1. The Apache Derby database

Software and Programming 1

Software Installation for CS121

CS 152: Data Structures with Java Hello World with the IntelliJ IDE

Computer Science AP 2017 Summer Assignment Mrs. McFarland

Guide to managing departmental shared drives

5/3/2006. Today! HelloWorld in BlueJ. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont.

Verifying a Restore Repository

AP Computer Science National Day School

Imperative and Object Oriented Programming. Tutorial 1. Charlie Abela Department of Artificial Intelligence

Getting Started with Eclipse/Java

HOW TO BACKUP LCL AND QUICKBOOKS. LCL and QuickBooks (QBs) must be backed up separately. The LCL program does NOT backup both systems.

Software and Programming 1

AP Computer Science Unit 1. Writing Programs Using BlueJ

RTMS - Software Setup

Just Enough Eclipse What is Eclipse(TM)? Why is it important? What is this tutorial about?

Install and setup TrueCrypt

AP Computer Science Unit 1. Writing Programs Using BlueJ

ADOBE DREAMWEAVER CS4 BASICS

COMP1406 Tutorial 1. Objectives: Getting Started:

Table of Contents. Installation Preface... 1 Prerequisites... 1 Installation Procedure... 1

Installing and Using Dev-C++

WA2493 What's New in Java 8. Classroom Setup Guide. Web Age Solutions Inc.

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

San Jacinto College. Secure SSL VPN Instruction Manual. Contents

Password Memory 7 User s Guide

St. Edmund Preparatory High School Brooklyn, NY

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

Introduction to Java Unit 1. Using BlueJ to Write Programs

Getting Started (1.8.7) 9/2/2009

Read Me First! Start Here. Read Me First! Start Here.

AP Computer Science A Summer Assignment

SmartCVS Tutorial. Starting the putty Client and Setting Your CVS Password

Starting ParTEST. Select Start, Programs ParTEST ParTEST Enter your User Name and password

Instructions PLEASE READ (notice bold and underlined phrases)

Where Are My Primary Documents? Document Management and Project Backup

1. Go to the URL Click on JDK download option

In the following description the h: drive is used to indicate the directory in which during the actual ci101 exam the files used will reside.

Eclipse. JVM, main method and using Eclipse. Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Image Backup and Recovery Procedures For Windows 7

WA2423 JavaScript for Web 2.0 Development. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

Using BlueStep Backup

Assignment Marking Criteria

II. Compiling and launching from Command-Line, IDE A simple JAVA program

Chapter 1. Introduction

Introduction Basic elements of Java

Archivists Toolkit Internal Database

Programming by Delegation

CS 201 Software Development Methods Spring Tutorial #1. Eclipse

How do I apply the patch files?

SCHOOL OF COMPUTING, ENGINEERING AND MATHEMATICS SEMESTER 1 EXAMINATIONS 2015/2016 CI101 / CI177. Programming

Using Scantron ParLAN 6.5 for the First Time:

Managing Files & Folders

Eclipse Environment Setup

How to Install, Configure and Use sftp (Windows Version)

Table of contents. Digifobpro User Instructions - WiFi Module Page - 2

Installing Subversion on Windows

How do I apply the patch files? The instructions shown here are only for the version patch.

WA day Java prereq for Selenium. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

User Manual & Quick-Start Guide

1 Using the NetBeans IDE

Microsoft Word 2011 Tutorial

Java: Comment Text. Introduction. Concepts

Chapter 2. Editing And Compiling

Software and Programming 1

Download and Installation Instructions. Java JDK Software for Windows

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

CSIS10A Installation Instructions for setting up the BlueJ Java IDE

Systems Programming Advanced Software Development

ACT! Calendar to Excel

BackupVault Desktop & Laptop Edition. USER MANUAL For Microsoft Windows

UOB Offline Data Input Software (ODIS)

Setting Up a Linux Operating System

Software and Programming 1

WinSCP. Author A.Kishore/Sachin

10.User Password and Object Security

Open the QpTools form (from the SWITCHBOARD "Utilities" menu):

CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: Lab Instructions: Log in Create folder CS209

Griffin Training Manual

MEAP Edition Manning Early Access Program Get Programming with Java Version 1

Office365 End User Training & Self-Service Migration Manual Simplified

To complete this project, you will need the following folder:

Microsoft FrontPage 2003 The Basics

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Code::Blocks Student Manual

My Site. Introduction

Geography 281 Mapmaking with GIS Project One: Exploring the ArcMap Environment

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to:

WA2452 Node.js Software Development. Classroom Setup Guide. Web Age Solutions Inc.

Semester 2, 2018: Lab 1

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017

FrontPage Student IT Essentials. October 2005 This leaflet is available in other formats on request. Saving your work

Roxen Content Provider

WA1677 J2EE Application Development with Spring and Hibernate. Classroom Setup Guide. Web Age Solutions Inc.

Transcription:

Creating and running a Java program. This tutorial is an introduction to running a computer program written in the computer programming language Java using the BlueJ IDE (Integrated Development Environment). Create an area to hold your program either: On a networked drive at the University: Do this by creating on the m: drive (Accessed via start menu link Computer [The m: drive has your login id as name]) the subdirectory CI101. The m: drive is an area of network disk space that belongs to you and only you. Your m: drive can be seen from any computer that you login to within the University. On a memory stick / USB drive Does this by creating on your memory stick/ USB drive the subdirectory CI101. However, do remember to take a backup of your memory stick, as they are very small and easy to lose. Remember it is very easy to lose (Accidently delete etc) your files. I also use Dropbox, to keep my current precious files, so even if I accidently delete them, I can still recover them up to 30 days later. There are several other companies that also offer free network storage in this way. M A Smith University of Brighton Page 1 04/10/2016

Run the application BlueJ To do this you will need to: Open the folder Applications (That is on the desk top) then open the subdirectory Computing. In this subfolder is a link to the application BlueJ. Now click on the link BlueJ to open the BlueJ IDE (Integrated Development Environment) When BlueJ launches select the bottom option for the 64 bit JDK to run. However, if the link to BlueJ is not present Right click on Applications Icon, and select open folder location Navigate to Program Files (X86) and open this directory Navigate to BlueJ and open this directory Now double click on the file BlueJ When BlueJ launches select the bottom option for the 64 bit JDK to run. M A Smith University of Brighton Page 2 04/10/2016

You will now be presented with the BlueJ IDE The Project menu allows you to create a BlueJ project in which will be held the files for your Java program. M A Smith University of Brighton Page 3 04/10/2016

Now after selecting the menu option Project, navigate to where you want your project to be created (At the University use your m: drive). The example below shows a project named About being created in the directory CI101. If you store a file on the c: drive then it will be stored on the machines local disk. This may/will be deleted immediately after your have logged out. It will not be available on any other machine at the University. M A Smith University of Brighton Page 4 04/10/2016

Now in the Project About create a new Class called Main. Then Select OK The name Main is used as a class name and by convention always starts with an upper case letter. M A Smith University of Brighton Page 5 04/10/2016

Double click on the Main icon (or right click on it and then select edit). Now replace the skeleton program code with the example program at (hyperlink): http://www.cem.brighton.ac.uk/staff/mas/mas/courses/ci101_2016/programs1/s00_about_01_java.html Make sure you only copy the program code and not also the header and footer text on the web page. Alternatively go to the web page http://www.cem.brighton.ac.uk/staff/mas Then follow the links courses -> CI101 -> Programs 1 The first program in week 1 is the program to copy and paste into BlueJ M A Smith University of Brighton Page 6 04/10/2016

You can indent the program code by selecting Auto-layout from the Edit menu. By indenting your program, you will find it easier to read/ follow and others will find it easier to read/ follow. The above shows how to indent your program. Many mistakes in a program are hidden by poor indentation. M A Smith University of Brighton Page 7 04/10/2016

Now compile the Java code. It should say Class compiled no syntax errors If it does not, then try to find the mistake or after about two minutes of looking ask for help. M A Smith University of Brighton Page 8 04/10/2016

To run the program, in the main window right click on Main and then select void main(string[] args). To the dialog box you now see click ok M A Smith University of Brighton Page 9 04/10/2016

The program will run and you will see the output on the screen. M A Smith University of Brighton Page 10 04/10/2016

Next, add some details about yourself to the above program. You will need to add the text you wish to output between the double "" in the program. If you want to add an extra line then just add another print statement (see below) System.out.println( "text to be added" ); Now re-compile the program and re-run. Next, add an extra fact about yourself to the program. Have the program print this as another fact about youself at the end. Now re-compile the program and re-run. Experiment by changing the initial value of the variable fact in the line int fact = 1; to a value other than 1. Now re-compile the program and re-run. M A Smith University of Brighton Page 11 04/10/2016

Try some of the other programs from week 1. http://www.cem.brighton.ac.uk/staff/mas/mas/courses/ci101_2016/programs1/index.html For example, the program s00_apples_02.java If you get the error message cannot fine symbol variable BIO. Then create a new class in the project called BIO and into this paste the code from, the top link (the last web page opened) for the BIO code. Now recompile and the error will go away. The reason for this is that your machine does not have the file BIO.jar included in the ext directory for the JDK and or JRE. Warning BlueJ will stop working (Endless loop), if you create the class BIO and the file BIO.jar exists in the JDK/ JRE ext directory. The only solution is to exit BlueJ and then outside of BlueJ delete the file for BIO in your BlueJ project. Now run this program. M A Smith University of Brighton Page 12 04/10/2016