lejos NXJ Problem Solving with Robots [PRSOCO601]
|
|
- Aron Flowers
- 6 years ago
- Views:
Transcription
1 lejos NXJ Problem Solving with Robots [PRSOCO601] Thomas Devine February 20,
2 Contents 1 lejos NXJ Introducing the Java Development The Java Platform Introducing lejos NXJ Platform Installing NXJ Uploading the Firmware Compiling and Uploading Java Code using Command Prompt Eclipse Development Environment Installing a Development Environment Using Eclipse with lejos NXJ Loading a Project and Entering Code Compiling and Downloading Code Running the Program Creating a New Java Program Class
3 List of Figures 1 Java Development Process Java Virtual Machine Java Development Environment lejos NXJ Development Environment lejos Logo Eclipse Workspace lejos Toolbar New Java Class
4 1 lejos NXJ LEGO's own NXT-G programming language is great, especially for those just learning to program. However, we need to use Java to program the NXT to do things. This module uses the lejos NXJ, a software platform that allows you to program the NXT brick using Java. In this section we will briey discuss how to set up lejos NXJ on your computer, and introduce a time saving Integrated Development Environment (IDE). But rstly, some basics that must be understood. 1.1 Introducing the Java Development In the Java programming language, all source code is rst written in plain text les ending with the.java extension (e.g. MyProgram.java). Those source les are then compiled into.class les by the Java compiler (javac). A.class le contains bytecodes the machine language of the Java Virtual Machine (Java VM). The Java launcher tool (java) then runs your application using the Java Virtual Machine. Figure 1 shows this process. Figure 1: Java Development Process 1.2 The Java Platform A platform is the hardware or software environment in which a program runs. Some of the most popular platforms are Micro$oft Windows, Linux, Mac OS and even cell phones. Most platforms can be described as a combination of the operating system and underlying hardware. The Java platform diers from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has two components:- the Java Virtual Machine (JVM), the Java Application Programming Interface (API) The Java VM (Figure 2) is available for many dierent operating systems { Micro$oft Windows, Linux, Macintosh and various cell phones. This means that any Java. class les are capable of running on either Micro$oft Windows, Linux, Mac OS or a compatible cell phone. The Java API is a large collection of ready-made software classes (3,777) that provide many useful capabilities (e.g. System, String, Scanner classes). It is organised into libraries of related classes known as packages. 4
5 Figure 2: Java Virtual Machine Figure 3 shows the relationship between a standard Java program MyProgram.class, the Java API, Java Virtual Machine, and Hardware-Based Platform. Notice how the API and Java Virtual Machine hide the program from the underlying hardware. Figure 3: Java Development Environment 1.3 Introducing lejos NXJ Platform lejos is pronounced like the Spanish word "lejos" (lay haws). lejos is Spanish for "far". The letters JOS are capitalised because those letters are an acronym for Java Operating System. Like the Java platform, the lejos NXJ platform is also a software-only platform that runs on top of other hardware-based platforms, but primarily the Lego NXT brick. The lejos NXJ platform has two components:- The lejos JVM, the NXJ Application Programming Interface (API) The lejos JVM is a tiny Java Virtual Machine written for the Lego NXT brick in The lejos JVM (Java Virtual Machine) is written in C code in a platform independent style, which means it is easily ported to other machines. So far it has appeared on the Lego RCX brick, the Nintendo's Gameboy Advance, and now the Lego NXT brick. 5
6 The NXJ API is a small collection of classes (365) that provide many useful capabilities such as input/output support, core Java classes, navigation, access to NXT sensors, motors, etc. It is also organised into libraries of related classes known as packages. Figure 4 shows the relationship between the Java NXT program GoForward.class, NXJ API, lejos Java Virtual Machine, and Lego NXT Brick. Figure 4: lejos NXJ Development Environment 1.4 Installing NXJ You receive the following when you download the Java SDK from Sun Microsystems: classes that allow you to interact with your computer, tools to compile code, a Java Virtual Machine to run your code. You get the same things when you download IeJOS NXJ, except that the class selection is tailored to the capacity and needs of the NXT brick. You do not need to install this software, it has been done for you. The NXJ software can be downloaded from the lejos website. 1.5 Uploading the Firmware At the moment the Lego NXT brick is using a Lego operating system (aka rmware) that handles the NXT-G programs you have been writing using the Lego NXT Software. However, we must replace this operating system (rmware) with lejos. To do this follow these steps (once only):- 1. First we need to place the NXT brick in rmware upload mode. The reset button is cleverly hidden in a LEGO pin hole so you don't accidentally press it. Turn on the NXT. Using a bent paperclip, insert it into the hole in the upper-right corner of the underside of the NXT brick. Hold the button for at least four seconds to erase the current rmware and put it into rmware upload mode. 2. Your NXT brick should be making a soft pulsing sound. Now we need to upload the rmware. Plug in your USB cable. Windows users can enter the command line by selecting Start> Run and then typing cmd (and click OK). At the DOS prompt type:- 6
7 X:\> nxjflash 3. After a very brief moment you will see the lejos NXJ logo (Figure 5) and a menu system will appear. Your NXT brick is now ready to accept Java code. Figure 5: lejos Logo 1.6 Compiling and Uploading Java Code using Command Prompt In this section you can try compiling and uploading some sample code from the command line. Windows users can enter the command line by selecting Start> Run and then typing cmd (and click OK). 1. From a command line prompt, change to the samples tune directory where you installed lejos:- X:\> C: C:\> cd \java\lejos_nxj\samples\tune 2. Compile the sample Java le:- C:\java\lejos_nxj\samples\tune> nxjc Tune.java 3. This creates a le called Tune.nxj, lejos bytecode. Now it is time to upload the this le. Plug in your USB cable. Turn on the NXT by pressing the orange button and type:- C:\java\lejos_nxj\samples\tune> nxj -r Tune 4. After a moment your should hear a tune play from your NXT brick. You have just compiled, uploaded and run your rst Java program onto the Lego NXT! 7
8 2 Eclipse Development Environment 2.1 Installing a Development Environment As we have seen, Java programming is possible with a text editor and a command line. However, it's easier to click on buttons to make things happen rather than typing commands and optional parameters. Also, most text editors don't have many features to help you enter code. It won't tell you when you've misspelled the name of a class or forgotten a bracket. (But in the author's opinion this isn't always a good thing). An IDE, or Integrated Development Environment, is a tool that allows you to enter, compile, and upload code to your NXT using simple buttons. You're probably using a IDE called jgrasp already. It also monitors code syntax, coloring your code so you can more easily identify the parts. This section suggests using a free, open source IDE for your lejos NXJ needs. One of the best open source IDE's is Eclipse by IBM. It's free, powerful, and easy to use. It can make sense to use a more advanced IDE when your code grows quite large. However, it may be a number of years until this can be justied for you. Again, you do not need to install Eclipse, it has been done for you. Eclipse software can be downloaded from the Eclipse website. 2.2 Using Eclipse with lejos NXJ To launch the Eclipse IDE Windows users can select Start> Programs> Programming> Eclipse. Eclipse stores data about your work in a workspace. For this module, you will create/use a workspace that is always stored on your X drive. When prompted tell Eclipse where to store your workspace. Figure 6 shows what you must type for your workspace and click the checkbox to get Eclipse to use this folder as the default workspace location. Figure 6: Eclipse Workspace 8
9 2.2.1 Loading a Project and Entering Code For now, we will load an existing Eclipse project called lejos HelloWorld. The project is stored in a ZIP le called lejos HelloWorld.ZIP on the Problem Solving with Robots webpage. Follow the steps outlined here to retrieve and load this project:- 1. Go to the Problem Solving with Robots webpage; 2. Right click on the le lejos HelloWorld.ZIP and Save As to the directory x:/workspace; 3. Unzip the le lejos HelloWorld.ZIP. You should now have a directory called lejos HelloWorld in the x:/workspace directory; 4. Now Import the project into Eclipse. From the Eclipse menu choose File> Import...; 5. From the Import Dialog choose General> Existing Projects into Workspace and click the Next button; 6. For the "Select root directory" textbox, click the Browse button and select the X:/workspace directory; 7. From the "Projects" list select the lejos HelloWorld project and click the Finish button; 8. You should now see a project called lejos HelloWorld in the left hand Navigation pane. You will be required to follow the steps above for every new project given to you. To enter code follow these steps:- 1. In the Eclipse navigation pane to the left single click on the lejos HelloWorld folder icon and from the menus select Project> Open Project. The lejos HelloWorld project is now open; 2. From the project folder icon select src> HelloWorld.java; 3. In the Code pane you should see some Java code. Change the string "message" in the LCD.drawString() method to "hello,world!" Compiling and Downloading Code We are now ready to compile the code. From the NXJ tools button in the Eclipse toolbar shown in Figure 7, select the item NXJ Compile. Next, turn on the NXT brick, plug in the USB cable, and select the item NXJ Download from the NXJ tools button. The code should download to the NXT brick followed by a few beeps from the NXT brick. 9
10 Figure 7: lejos Toolbar Running the Program Using the buttons on the NXT brick select Files> HelloWorld.nxj> Execute Program. You should see the text "hello, world" appear briey Creating a New Java Program Class Follow these instructions each time you are asked to write a new Java program in a Eclipse Project. 1. Select the project folder icon in the left hand pane; 2. Choose File> New> Class; 3. See Figure 8. In the New Java Class window type the program name in the Name: eld (e.g. BatteryProgram); 4. Click the checkbox labelled public static void main(string[] args); 5. Click the Finish button. 10
11 Figure 8: New Java Class References 11
RTMS - Software Setup
RTMS - Software Setup These instructions are for setting up the RTMS (Robot Tracking & Management System) software. This software will run on your PC/MAC and will be used for various labs in order to allow
More informationJava using LEGO Mindstorms and LeJOS. University of Idaho
Java using LEGO Mindstorms and LeJOS University of Idaho 2 Contents 1 Introduction 1 1.1 Setting up Java and Eclipse................................ 1 1.2 Setting up the Lego Brick to work with LeJOS.....................
More information1. Introduction. Java. Fall 2009 Instructor: Dr. Masoud Yaghini
1. Introduction Java Fall 2009 Instructor: Dr. Masoud Yaghini Outline Introduction Introduction The Java Programming Language The Java Platform References Java technology Java is A high-level programming
More informationGetting Started with Java. Atul Prakash
Getting Started with Java Atul Prakash Running Programs C++, Fortran, Pascal Python, PHP, Ruby, Perl Java is compiled into device-independent code and then interpreted Source code (.java) is compiled into
More informationIT151: Introduction to Programming (java)
IT151: Introduction to Programming (java) Programming Basics Program A set of instructions that a computer uses to do something. Programming / Develop The act of creating or changing a program Programmer
More informationStarting In Java With JPT in Eclipse
Starting In Java With JPT in Eclipse 1. Installing Java and Eclipse Both Java from Sun Microsystems and the Eclipse development environment are free to download. It is important that Java be installed
More informationLab #1: A Quick Introduction to the Eclipse IDE
Lab #1: A Quick Introduction to the Eclipse IDE Eclipse is an integrated development environment (IDE) for Java programming. Actually, it is capable of much more than just compiling Java programs but that
More informationCode Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia
Code Ninjas: Introduction to Computer Science Macomb Science Olympiad Presented by Swati Dharia Intro to Java Programming The three basic steps required to get a simple program running. As with any application,
More informationGetting Started with Eclipse/Java
Getting Started with Eclipse/Java Overview The Java programming language is based on the Java Virtual Machine. This is a piece of software that Java source code is run through to produce executables. The
More informationEclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang
Eclipse Tutorial For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Getting Started with Eclipse Choosing a Perspective Creating a Project Creating a Java
More informationLesson 04: Our First Java Program (W01D4
Lesson 04: Our First Java Program (W01D4) Balboa High School Michael Ferraro Lesson 04: Our First Java Program (W01D4 Do Now Start a terminal shell. From there, issue these commands
More informationToday. Robotics and Autonomous Systems. The scenario (again) Basic control loop
Today Robotics and Autonomous Systems Lecture 3 Programming robots Richard Williams Department of Computer Science University of Liverpool Before the labs start on Monday, we will look a bit at programming
More informationGetting Started (1.8.7) 9/2/2009
2 Getting Started For the examples in this section, Microsoft Windows and Java will be used. However, much of the information applies to other operating systems and supported languages for which you have
More informationIn the first class, you'll learn how to create a simple single-view app, following a 3-step process:
Class 1 In the first class, you'll learn how to create a simple single-view app, following a 3-step process: 1. Design the app's user interface (UI) in Xcode's storyboard. 2. Open the assistant editor,
More informationThe Command Shell. Fundamentals of Computer Science
The Command Shell Fundamentals of Computer Science Outline Starting the Command Shell Locally Remote Host Directory Structure Moving around the directories Displaying File Contents Compiling and Running
More informationPROGRAMMING ROBOTS AN ABSTRACT VIEW
ROBOTICS AND AUTONOMOUS SYSTEMS Simon Parsons Department of Computer Science University of Liverpool LECTURE 3 comp329-2013-parsons-lect03 2/50 Today Before the labs start on Monday, we will look a bit
More informationRobot Practical Course
64-272 Robot Practical Course http://tams-www.informatik.uni-hamburg.de/ lectures/2013ss/praktikum/robot_practical_course/ Manfred Grove, Ben Adler University of Hamburg Faculty of Mathematics, Informatics
More informationSlide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto
CS 170 Java Programming 1 Eclipse@Home Downloading, Installing and Customizing Eclipse at Home Slide 1 CS 170 Java Programming 1 Eclipse@Home Duration: 00:00:49 What is Eclipse? A full-featured professional
More informationFor live Java EE training, please see training courses at
Java with Eclipse: Setup & Getting Started Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/java.html For live Java EE training, please see training courses
More informationInstructions. First, download the file
Instructions First, download the file http://www.cs.mcgill.ca/~cs202/2012-09/web/lectures/dan/unit0/helloworld.java from the course webpage. You can view this file in a program such as notepad (windows),
More informationCSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)
Goals - to learn how to compile and execute a Java program - to modify a program to enhance it Overview This activity will introduce you to the Java programming language. You will type in the Java program
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming
More informationThe Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people
The Computer System Hardware = Physical Computer The equipment associated with a computer system. hardware software people The set of instructions that tell a computer what to do. Use the power of the
More informationImperative and Object Oriented Programming. Tutorial 1. Charlie Abela Department of Artificial Intelligence
Imperative and Object Oriented Programming Tutorial 1 Department of Artificial Intelligence charlie.abela@um.edu.mt Tutorial 1 In this tutorial you will be using the BlueJ IDE to develop java classes.
More informationDownload Program. Setup ROBOTC. task main() { motor[motorc] = 100; wait1msec(3000);
Your robot is ready to go! All that s left is for you to tell it what to do by sending it a program. A program is a set of commands that tell the robot what to do and how to react to its environment. Once
More informationUNic Eclipse Mini Tutorial (Updated 06/09/2012) Prepared by Harald Gjermundrod
Page 1 of 19 UNic Eclipse Mini Tutorial (Updated 06/09/2012) Prepared By: Harald Gjermundrod Table of Contents 1 EASY INSTALLATION... 2 1.1 DOWNLOAD... 2 1.2 INSTALLING... 2 2 CUSTOMIZED INSTALLATION...
More informationRead Me First! Start Here. Read Me First! Start Here.
Getting Started with for Mac OS JAVA Welcome! Hardware Software Disk Space B A S I C S Y S T E M R E Q U I R E M E N T S Classic Mac OS development PowerPC 601 or greater processor (no 68K support), 64
More informationLife Without NetBeans
Life Without NetBeans Part A Writing, Compiling, and Running Java Programs Almost every computer and device has a Java Runtime Environment (JRE) installed by default. This is the software that creates
More informationFairfield University Using Xythos for File Storage
Fairfield University Using Xythos for File Storage Version 7.0 Table of Contents I: Accessing your Account...2 II: Uploading Files via the Web...2 III: Manage your Folders and Files via the Web...4 IV:
More information3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)
GETTING STARTED: YOUR FIRST JAVA APPLICATION 15 3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION Checklist: The most recent version of Java SE Development
More informationAgreement. Objectives. General Guidelines for Labs. Reading Assignment
1 CMPSC 111 Introduction to Computer Science I Fall 2016 Janyl Jumadinova Lab 9 for Section 1 17 November 2016 Due: 1 December, by 2:30 pm This is a team-based assignment. You have to work in teams of
More informationSetup and Getting Startedt Customized Java EE Training:
2011 Marty Hall Java a with Eclipse: Setup and Getting Startedt Customized Java EE Training: http://courses.coreservlets.com/ 2011 Marty Hall For live Java EE training, please see training courses at http://courses.coreservlets.com/.
More informationInstalling Eclipse (C++/Java)
Installing Eclipse (C++/Java) The 2017 suite of text-based languages, Java and C++, utilize the current version of Eclipse as a development environment. The FRC specific tools for the chosen language are
More informationIntroduction to Java. Nihar Ranjan Roy. https://sites.google.com/site/niharranjanroy/
Introduction to Java https://sites.google.com/site/niharranjanroy/ 1 The Java Programming Language According to sun Microsystems java is a 1. Simple 2. Object Oriented 3. Distributed 4. Multithreaded 5.
More informationEclipse. JVM, main method and using Eclipse. Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics
Eclipse JVM, main method and using Eclipse Produced by: Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list Files in Java. Java Virtual Machine. main method. Eclipse
More informationWentworth Institute of Technology. Engineering & Technology WIT COMP1000. Java Basics
WIT COMP1000 Java Basics Java Origins Java was developed by James Gosling at Sun Microsystems in the early 1990s It was derived largely from the C++ programming language with several enhancements Java
More informationProgramming with Java
Java-At-A-Glance Widely used, high-level programming language Programming with Java Developed by Sun Microsystems in 1995 (which was acquired by Oracle Corporation in 2010) An object-oriented programming
More informationUsing Eclipse and Karel
Alisha Adam and Rohit Talreja CS 106A Summer 2016 Using Eclipse and Karel Based on a similar handout written by Eric Roberts, Mehran Sahami, Keith Schwarz, and Marty Stepp If you have not already installed
More information2 Getting Started. Getting Started (v1.8.6) 3/5/2007
2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless
More informationFun with Java Technology on Lego Mindstorms
Speaker logo centered below photo Fun with Java Technology on Lego Mindstorms Roger Glassey University of California, Berkeley Andy Shaw Sun Microsystems LEGO, the LEGO logo, MINDSTORMS, the Brick and
More informationLaboratory 1: Eclipse and Karel the Robot
Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also
More informationi2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code
i2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code About this guide Informatics for Integrating Biology and the Bedside (i2b2) began as one of the sponsored initiatives of the NIH Roadmap
More informationPART 1. Eclipse IDE Tutorial. 1. What is Eclipse? Eclipse Java IDE
PART 1 Eclipse IDE Tutorial Eclipse Java IDE This tutorial describes the usage of Eclipse as a Java IDE. It describes the installation of Eclipse, the creation of Java programs and tips for using Eclipse.
More informationHistory of Java. Java was originally developed by Sun Microsystems star:ng in This language was ini:ally called Oak Renamed Java in 1995
Java Introduc)on History of Java Java was originally developed by Sun Microsystems star:ng in 1991 James Gosling Patrick Naughton Chris Warth Ed Frank Mike Sheridan This language was ini:ally called Oak
More informationCOSC 123 Computer Creativity. Introduction to Java. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 123 Computer Creativity Introduction to Java Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Key Points 1) Introduce Java, a general-purpose programming language,
More informationSoftware Installation for CS121
Software Installation for CS121 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University August 26, 2005 1 Installation of Java J2SE 5 SDK 1. Visit Start Settings Control Panel
More informationCHAPTER 1 Introduction to Computers and Java
CHAPTER 1 Introduction to Computers and Java Copyright 2016 Pearson Education, Inc., Hoboken NJ Chapter Topics Chapter 1 discusses the following main topics: Why Program? Computer Systems: Hardware and
More informationUSING THE OOSIML/JAVA COMPILER. With the Command Window
USING THE OOSIML/JAVA COMPILER With the Command Window On Windows Operating System José M. Garrido Department of Computer Science December 2017 College of Computing and Software Engineering Kennesaw State
More informationCOMP1406 Tutorial 1. Objectives: Getting Started:
COMP1406 Tutorial 1 Objectives: Write, compile and run simple Java programs using the IntelliJ Idea IDE. Practice writing programs that require user input and formatted output. Practice using and creating
More informationSoftware Installation Guide
Software Installation Guide Software Installation Guide 2024C Engagement Development Platform Developing Snap-ins using Java Page 1 of 11 Bring Your Own Device (BYOD) Requirements You will be using your
More informationJust Enough Eclipse What is Eclipse(TM)? Why is it important? What is this tutorial about?
Just Enough Eclipse What is Eclipse(TM)? Eclipse is a kind of universal tool platform that provides a feature-rich development environment. It is particularly useful for providing the developer with an
More informationCS 201 Software Development Methods Spring Tutorial #1. Eclipse
CS 201 Software Development Methods Spring 2005 Tutorial #1 Eclipse Written by Matthew Spear and Joseph Calandrino Edited by Christopher Milner and Benjamin Taitelbaum ECLIPSE 3.0 DEVELOPING A SIMPLE PROGRAM
More informationCS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.
CS520 Setting Up the Programming Environment for Windows Suresh Kalathur 1. Java8 SDK Java8 SDK (Windows Users) For Windows users, download the Java8 SDK as shown below. The Java Development Kit (JDK)
More informationIntroduction to Eclipse
Introduction to Eclipse Ed Gehringer Using (with permission) slides developed by Dwight Deugo (dwight@espirity.com) Nesa Matic (nesa@espirity.com( nesa@espirity.com) Sreekanth Konireddygari (IBM Corp.)
More informationGetting Started with Web Services
Getting Started with Web Services Getting Started with Web Services A web service is a set of functions packaged into a single entity that is available to other systems on a network. The network can be
More informationDepartment of Computer Science University of Pretoria. Introduction to Computer Science COS 151
Department of Computer Science University of Pretoria Introduction to Computer Science COS 151 Practical 1 16 February 2018 1 Plagiarism Policy The Department of Computer Science considers plagiarism as
More informationIntroduction to Java. Lecture 1 COP 3252 Summer May 16, 2017
Introduction to Java Lecture 1 COP 3252 Summer 2017 May 16, 2017 The Java Language Java is a programming language that evolved from C++ Both are object-oriented They both have much of the same syntax Began
More informationTutorial 1 CSC 201. Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا
Tutorial 1 CSC 201 Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا م- م- م- م- م- Chapter 1 1. What is Java? 2. Why Learn Java? a. Java Is Platform Independent b. Java is Easy to learn 3. Programming
More informationGuided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth
Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth This document was inspired by the Guided Tour written by Professor H. Roumani. His version of the tour can be accessed at
More informationEV3Dev Lessons. Introduction to EV3Dev: Setup with Python
EV3Dev Lessons Introduction to EV3Dev: Setup with Python Objectives Learn how to install ev3dev on an EV3 Setup Visual Studio Code IDE Prerequisites: none Copyright EV3Lessons 2018 (Last Update: Aug. 9,
More information3. Hello World! for IDEA. Java. Summer 2008 Instructor: Dr. Masoud Yaghini
3. Java Summer 2008 Instructor: Dr. Masoud Yaghini Outline Java IDEs Creating A Project Making A Java Class Building the Project Running the Project References Java IDEs Java IDEs Integrated Development
More informationClass 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017
Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017 1 1. Please obtain a copy of Introduction to Java Programming, 11th (or 10th) Edition, Brief
More informationADOBE DREAMWEAVER CS4 BASICS
ADOBE DREAMWEAVER CS4 BASICS Dreamweaver CS4 2 This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,
More informationSeeMeCNC Guides. Step 5: Installing the Firmware. This guide will show you how to install the firmware on your Rostock MAX v3 3D printer.
SeeMeCNC Guides Step 5: Installing the Firmware This guide will show you how to install the firmware on your Rostock MAX v3 3D printer. Written By: geneb 2016 seemecnc.dozuki.com Page 1 of 7 Step 1 Download
More informationGetting Started with Eclipse for Java
Getting Started with Eclipse for Java Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Publishing 1. Introduction 2. Downloading and Installing Eclipse 3. Importing and Exporting
More informationWhere Did My Files Go? How to find your files using Windows 10
Where Did My Files Go? How to find your files using Windows 10 Have you just upgraded to Windows 10? Are you finding it difficult to find your files? Are you asking yourself Where did My Computer or My
More informationGetting Started with Web Services
Getting Started with Web Services Getting Started with Web Services A web service is a set of functions packaged into a single entity that is available to other systems on a network. The network can be
More informationII. Compiling and launching from Command-Line, IDE A simple JAVA program
Contents Topic 01 - Java Fundamentals I. Introducing JAVA II. Compiling and launching from Command-Line, IDE A simple JAVA program III. How does JAVA work IV. Review - Programming Style, Documentation,
More informationEven though we created a folder for the workspace, we still have to let JCreator do the same. So click File, New, and then Blank Workspace.
Getting Started With JCreator The first thing to do with JCreator is to create a workspace. A workspace is an area where you can store a project or a set of related projects. For me, the best way to create
More informationRunning Java Programs
Running Java Programs Written by: Keith Fenske, http://www.psc-consulting.ca/fenske/ First version: Thursday, 10 January 2008 Document revised: Saturday, 13 February 2010 Copyright 2008, 2010 by Keith
More informationUSB. Bluetooth. Display. IO connectors. Sound. Main CPU Atmel ARM7 JTAG. IO Processor Atmel AVR JTAG. Introduction to the Lego NXT
Introduction to the Lego NXT What is Lego Mindstorm? Andreas Sandberg A kit containing: A Lego NXT computer 3 motors Touch sensor Light sensor Sound sensor Ultrasonic range
More informationSummer Assignment for AP Computer Science. Room 302
Fall 2016 Summer Assignment for AP Computer Science email: hughes.daniel@north-haven.k12.ct.us website: nhhscomputerscience.com APCS is your subsite Mr. Hughes Room 302 Prerequisites: You should have successfully
More informationA Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?
1 A Quick Tour WHAT S IN THIS CHAPTER? Installing and getting started with Visual Studio 2012 Creating and running your fi rst application Debugging and deploying an application Ever since software has
More informationWorkbook A dialog box will appear asking for you to select your "workspace". Leave the default as is, which should be /home/crsid/workspace.
In this workbook you will learn how to use Eclipse as a development environment for Java programs. Using Eclipse, you will then write a simple Java messaging client which will allow you to send and receive
More informationCSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse
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
More informationPart A: Monitoring the Rotational Sensors of the Motor
LEGO MINDSTORMS NXT Lab 1 This lab session is an introduction to the use of motors and rotational sensors for the Lego Mindstorm NXT. The first few parts of this exercise will introduce the use of the
More informationComputational Applications in Nuclear Astrophysics using Java Java course Lecture 1
Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1 Prepared for course 160410/411 Michael C. Kunkel m.kunkel@fz-juelich.de Materials taken from; docs.oracle.com Teach Yourself
More information! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to Computing and Programming with Java: A Multimedia
More informationIntroduction to Eclipse
Introduction to Eclipse In this chapter you install and configure Eclipse. I then use the classical HelloWorld example to show how to effectively create Java programs under Eclipse. I first discuss the
More information2Control NXT FAQ For the latest version of this document please go to > support
2Control NXT FAQ For the latest version of this document please go to www.2simple.com > support Common Questions Q: Can I connect 2Control to the NXT brick without using a USB cable? A: No, 2Control requires
More informationInstructions PLEASE READ (notice bold and underlined phrases)
Lab Exercises wk02 Lab Basics First Lab of the course Required Reading Java Foundations - Section 1.1 - The Java Programming Language Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercise
More informationSample Spark Web-App. Overview. Prerequisites
Sample Spark Web-App Overview Follow along with these instructions using the sample Guessing Game project provided to you. This guide will walk you through setting up your workspace, compiling and running
More informationMEAP Edition Manning Early Access Program Get Programming with Java Version 1
MEAP Edition Manning Early Access Program Get Programming with Java Version 1 Copyright 2018 Manning Publications For more information on this and other Manning titles go to www.manning.com welcome First,
More informationArduino 02: Using the Arduino with Python. Jeffrey A. Meunier University of Connecticut
Arduino 02: Using the Arduino with Python Jeffrey A. Meunier jeffm@engr.uconn.edu University of Connecticut About: How to use this document I designed this tutorial to be tall and narrow so that you can
More informationDeveloping Android applications in Windows
Developing Android applications in Windows Below you will find information about the components needed for developing Android applications and other (optional) software needed to connect to the institution
More informationChapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Introduction to Computers, Programs, and Java 1.1 What are hardware and software? 1. A computer is an electronic device that stores and processes data. A computer includes both hardware and software.
More informationFileMaker. Mobile 2.1. User s Guide. For Windows, Mac, Palm OS, and Pocket PC. Companion for Palm OS and Pocket PC
For Windows, Mac, Palm OS, and Pocket PC FileMaker Mobile 2.1 Companion for Palm OS and Pocket PC User s Guide 2000-2002 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa
More informationCertified Core Java Developer VS-1036
VS-1036 1. LANGUAGE FUNDAMENTALS The Java language's programming paradigm is implementation and improvement of Object Oriented Programming (OOP) concepts. The Java language has its own rules, syntax, structure
More informationMehran Sahami Handout #5 CS 106A September 26, 2018 Downloading Eclipse
Mehran Sahami Handout #5 CS 106A September 26, 2018 Downloading Eclipse Parts of this handout were written by Justin Manus and Brandon Burr and then wantonly updated by your loving CS106A staff. In CS106A,
More informationFiles to Contents. User Guide March 11, 2008
Files 8.3.0 to 8.4.1 User Guide March 11, 2008 Contents Managing files File properties Opening a file or folder Creating a new folder Copying a file or folder Deleting a file or folder Renaming of a file
More informationJVM interprets the Java bytecode, controls how it interacts with the operating system and manages memory.
Appendix 2 Installing the Java Development Kit A2.1. Why Java? Presented in May 1995 and developed by J. Gosling and P. Naughton of Sun Microsystems, Java is an object-oriented programming language. It
More informationCPSC 150 Laboratory Manual. Lab 1 Introduction to Program Creation
CPSC 150 Laboratory Manual A Practical Approach to Java, jedit & WebCAT Department of Physics, Computer Science & Engineering Christopher Newport University Lab 1 Introduction to Program Creation Welcome
More informationC02: Overview of Software Development and Java
CISC 3120 C02: Overview of Software Development and Java Hui Chen Department of Computer & Information Science CUNY Brooklyn College 08/31/2017 CUNY Brooklyn College 1 Outline Recap and issues Brief introduction
More informationCS260 Intro to Java & Android 02.Java Technology
CS260 Intro to Java & Android 02.Java Technology CS260 - Intro to Java & Android 1 Getting Started: http://docs.oracle.com/javase/tutorial/getstarted/index.html Java Technology is: (a) a programming language
More informationWhat is Eclipse? A free copy can be downloaded at:
Using Eclipse What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs. Eclipse is now maintained by the Eclipse Foundation,
More informationA PROGRAM IS A SEQUENCE of instructions that a computer can execute to
A PROGRAM IS A SEQUENCE of instructions that a computer can execute to perform some task. A simple enough idea, but for the computer to make any use of the instructions, they must be written in a form
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Intro to CSC116 Instructors Course Instructor:
More informationLego MINDSTORMS NXT Problem Solving with Robots [PRSOCO601]
Lego MINDSTORMS NXT Problem Solving with Robots [PRSOCO601] Thomas Devine http://noucamp thomas.devine@lyit.ie January 29, 2008 1 Contents 1 A Brief History of MINDSTORMS 4 2 Discovering the MINDSTORMS
More informationChapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More information8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More information