CSCI 394-02 Spring '07© 2007 JW Ryder1 Week 2 Material  Install and Configure  Mindstorms NXT Software and User Guide  LeJOS NXJ 0.1.0 Alpha  Java.

Slides:



Advertisements
Similar presentations
COP 3530 JDK Environment Variables. COP 3530 JDK Environment Variables Environment Variables Environment variables are a set of dynamic values that can.
Advertisements

Java Development Kit Installation Guide Sun Microsystems.
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
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.
Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Go to the link ( as shown, then choose downloads.
Scite Scintilla integrated text editor. Click here.
Eclipse Introduction Dwight Deugo Nesa Matic
Wireless Ad Hoc and Sensor Networks Lab1. 2 Objective Comprehend how to setup and use the wireless communication devices, Jennic Evaluation System. You.
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.
Update the PATH variable Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
SERVLETS.
WebServer & Tomcat By B. Venkateswarlu M.Tech Assoc Prof IT(Dept) Newton’s Institute of Engineering.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
ProSense BELGRADE Deploying SunSPOT SDK and Emulator on your Desktop or Laptop Computer Author: Stanislava Stanković, B.Sc. student of the School of Electrical.
LEGO NXT Robot Programming Introduction to Programming a Lego NXT robot in Java.
Set up the Environment for leJOS NXJ. Required Software Software –JDK 1.6 –leJOS NXJ –USB driver for NXT Mindstorm nxt USB driver Libusb MMN Lab.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Tutorial 11 Installing, Updating, and Configuring Software
CSE 305 Theory of Database Tutorial on Connecting with Sybase from Java program and Developing GUI Jalal Mahmud, TA, CSE 305.
Coding for the FIRST Tech Challenge: RobotC
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Guide Demo Program installation SOP ePAD SW PM. Before you start Check “Guide” version is latest ( or ) * follow next page Latest version.
Guideline: How to build AMSS source code? History: 01/02/ Make Draft 05/02/2010 – Release /02/2010 – Updated.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ   Uses.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
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.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
Welcome to java installation. After download java software, assuming you downloaded jdk1.7.0_11 Follow the procedure bellow to install java.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
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.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
introductory lecture on java programming
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Learn R Toolkit D Kelly O'DayInstall & SetupMod 1 - Setup: 1 Module 1 Installing & Setting Up R Do See & HearRead Learn PowerPoint must be in View Show.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
박 유 진.  IDE(Integrate Development Environment)  ECLIPSE Consortium  IBM, RedHat, METANT, QNX Software System etc…  Open Source Platform  Based JAVA.
 CSC 215 : Procedural Programming with C C Compilers.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
Day 1 Session 2. Setup & Installation
Exploring Computer Science Lesson 6-5
Java on the LEGO Mindstorms EV3
How to Run a Java Program
Exploring Computer Science Lesson 6-5
JavaTeaching and Importing a github repository
Run Java file with Window cmd
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Compiled from various Internet sources Presented by Mr. Hatfield
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

CSCI Spring '07© 2007 JW Ryder1 Week 2 Material  Install and Configure  Mindstorms NXT Software and User Guide  LeJOS NXJ Alpha  Java  General  Program examples

CSCI Spring '07© 2007 JW Ryder2 Install and Configure Mindstorms  Install Mindstorms NXT  Software – 1 CD – Take all defaults  User Guide – 1 CD on c:\ drive  Pass around while we talk

CSCI Spring '07© 2007 JW Ryder3 Reload Mindstorms Firmware  Start up Mindstorms Software  Click Tools -> Update NXT Firmware  Select v1.03 then press download  Your brick must be in firmware reset mode for this to work  When you turn the brick on, you should once again see the Lego logo etc as before

CSCI Spring '07© 2007 JW Ryder4 Create shortcuts Minstorms Stuff  Mindstorms NXT software  C:\Program Files\LEGO Software\LEGO MINDSTORMS Edu NXT\MINDSTORMSNXT.exe  User Guide  C:\NXT User Guide\winopen.exe  Start Mindstorms NXT Software  Download NXT firmware v1.3

CSCI Spring '07© 2007 JW Ryder5 LeJOS NXJ Alpha  Released Jan. 10, 2007  Specifically for the NXT  Missing support for Sound, Bluetooth, and Ultrasonic Sensor (I2C)  Version: Alpha lejos_NXJ_win32_0_1_0alpha.zip

CSCI Spring '07© 2007 JW Ryder6 Install LeJOS NXJ Alpha  Unzip LeJOS NXJ Alpha software and documentation to c:\  This will create a folder on c:\ called c:\lejosnxj0_1_0alpha  Check to make sure it is there  LeJOS needs a special tool called LibUsb to be able to download programs to the NXT  We must install

CSCI Spring '07© 2007 JW Ryder7 Install LibUsb  Can be found at  Package Name: Snapshot: libusb-win32-filter-bin exe  Run the setup EXE program. Use all defaults  Installs under c:\Program Files\LibUSB-Win32  Find its bin directory then  execute install-filter.exe one time by double-clicking on it

CSCI Spring '07© 2007 JW Ryder8 Environment Variables  System -> Advanced -> Environment Variables  Change in the ‘System Variables’ section  Always add to the end of the list if one exists  before adding separate the last one and your new one with a semi-colon (;)

CSCI Spring '07© 2007 JW Ryder9 PATH Environment Variable  PATH should contain: .;c:\program files\java\jdk1.5.0_10\bin;c:\lejosnxj0_1_0alpha\bin

CSCI Spring '07© 2007 JW Ryder10 CLASSPATH Environment Variable  CLASSPATH should contain: .;c:\394robotics\javaprojects;c:\lejosnxj0_1_0alpha\lib\classes.jar;c:\lejosnxj0_1_0alpha\lib\jtools.jar

CSCI Spring '07© 2007 JW Ryder11 Other Environment Variables  LEJOS_HOME=c:\lejosnxj0_1_0alpha  JAVA_HOME=c:\Program Files\Java  You should now be done with install and configure for a while

CSCI Spring '07© 2007 JW Ryder12 LeJOS NXJ Alpha Docs  Good docs in c:\lejosnxj0_1_0alpha\docs\apidocs  Add a shortcut to the desktop for the API docs  index.html

CSCI Spring '07© 2007 JW Ryder13 LeJOS NXJ Alpha Samples  Good docs in c:\lejosnxj0_1_0alpha\samples  One sample per folder, just like you will write your code  If you have not created a csci394projects folder yet on the c:\ drive, do it now

CSCI Spring '07© 2007 JW Ryder14 Important Notes about Using NXJ  lejos/2976  To Upload/Download for NXJ  Press reset button on brick for at least 4 seconds to put into firmware update mode

CSCI Spring '07© 2007 JW Ryder15 Java  Note: It is best to have jdk-1_5_10 installed on your system. That is what I am going to refer to.  9 will work and probably 1.6 too.  You will need to make your environment variables match the version of Java you have on your system  Info about installing JDK 1.5.0_10 SDK next

CSCI Spring '07© 2007 JW Ryder16 Java 1.5.0_10 SDK  Download jdk-1_5_10-windows-i586-p.exe from the Sun web site  java.sun.com  Allow default installation to:  c:\program files\java\jdk1.5.0_10  Add environment variable values:  PATH:.;c:\program files\java\jdk1.5.0_10\bin  CLASSPATH:. Note: A single period

CSCI Spring '07© 2007 JW Ryder17 Java Runtime Environment  Allow the JRE 1.5.0_10 to be installed during the normal installation  Installed in c:\program files\java\jre1.5.0_10

CSCI Spring '07© 2007 JW Ryder18 Java Documentation  jdk doc.zip – Get from Sun web site  Unzip into c:\program files\java  Creates a ‘docs’ folder under ‘java’ folder

CSCI Spring '07© 2007 JW Ryder19 Java New Folder Summary  Three new folders under c:\program files\java  docs, jdk1.5.0_10, and jre1.5.0_10

CSCI Spring '07© 2007 JW Ryder20 LeJOS NXJ Java Education  The SAMPLES are your friends. Start with the following order:  HelloWorld.java – let’s review and then try it  MemoryTest.java  TestButton.java  TestMotor.java  TestSensor.java  and so on ….  Copy HelloWord folder under your csci394projects folder

CSCI Spring '07© 2007 JW Ryder21 LeJOS NXJ Compile and Link  Open a command prompt window (DOS window) and cd to the folder with your copy of HelloWorld in it  Compile a program: lejosjc Test.java  Link a program: lejoslink Test -o Test.bin  Test.bin is now ready to download

CSCI Spring '07© 2007 JW Ryder22 LeJOS NXJ Download  You must first  Reset the brick to “firmware reset” mode  Turn the brick on  On bottom of brick, press reset for at least 4 seconds  Do you have a blank screen? (yes = good)  Turn the brick on (do you hear a tick tick?) (yes = good)  Download a program: lejosdl Test.bin

CSCI Spring '07© 2007 JW Ryder23 HelloWorld.java Example  In c:\csci394projects\HelloWorld  lejosjc HelloWorld.java  Input: HelloWorld.java, Output: HelloWorld.class  lojoslink HelloWorld –o HelloWorld.bin  Input: HelloWorld.class, Output: HelloWorld.bin  Ensure brick in reset mode and turned on in that order  lejosdl HelloWorld.bin  Watch the NXT LCD screen. What happens?