Setting up your Computer

Similar documents
Standard Edition (SE) application development Enterprise Edition (EE) enterprise development Micro Edition (ME) Internet of Things (IoT) development

Standard Edition (SE) application development Enterprise Edition (EE) enterprise development Micro Edition (ME) Internet of Things (IoT) development

Software Installation for CS121

IntelliJ IDEA Getting Started Guide for FIRST Robotics Competition

How to Install (then Test) the NetBeans Bundle

Getting Started with Eclipse/Java

Purpose. Why use Java? Installing the Software. Java

WA2009 Java EE 6 Programming - WebLogic 12c - Eclipse. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

You will need to download the Java software development kit from

Android Studio Setup Procedure

WA EJB and JPA Programming with Java EE 6 - WebLogic 12 / Eclipse. Classroom Setup Guide. Web Age Solutions Inc.

Apache Tomcat Installation guide step by step on windows

CSC116: Introduction to Computing - Java

Instructions. First, download the file

CSC116: Introduction to Computing - Java

WA1884 Introduction to Java. using Oracle JDeveloper 11g. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

WA2488 JavaScript Changes with ECMAScript Classroom Setup Guide. Web Age Solutions Inc.

WA1958 Mobile Software Design Patterns and Architecture Android Edition. Classroom Setup Guide. Web Age Solutions Inc.

Creating Android Apps from Rh10

WA2451 DevOps Fundamentals. Classroom Setup Guide. Web Age Solutions Inc.

Java Puzzle Ball Nick Ristuccia

Simple Step-by-Step Install Guide for Stand-Alone Apache Spark on Windows 10 Jonathan Haynes Last Updated September 14, 2018

You should now start on Chapter 4. Chapter 4 introduces the following concepts

Installation manual. source code (03/11/2010)

RTMS - Software Setup

Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide

Installing Eclipse (C++/Java)

WA2445 Programming REST Web Services with JAX-RS Wildfly / JBoss Developer Studio. Classroom Setup Guide. Web Age Solutions Inc.

You should see something like this, called the prompt :

WA2056 Building HTML5 Based Mobile Web Sites. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

WA2442 Introduction to JavaScript. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

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

Mehran Sahami Handout #5 CS 106A September 26, 2018 Downloading Eclipse

WA1278 Introduction to Java using Eclipse. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

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

CSC116: Introduction to Computing - Java

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

WA1739 Oracle WebLogic Server 10.3 Performance Tuning. Classroom Setup Guide. Web Age Solutions Inc. Copyright 2009 Web Age Solutions Inc.

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

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

For live Java EE training, please see training courses at

WA1927 Introduction to Struts 2.x Using Eclipse. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

WA1827 Cloud Programming Workshop. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

WA2012 Programming Java SOAP and REST Web Services - JBoss-Eclipse. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Certified Core Java Developer VS-1036

WA2185 Platform Independent Mobile Development with jquery Mobile and Apache Cordova. Classroom Setup Guide. Web Age Solutions Inc.

JVM interprets the Java bytecode, controls how it interacts with the operating system and manages memory.

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

WA2684 Developing MicroServices. Classroom Setup Guide. Web Age Solutions Inc.

Mehran Sahami Handout #5 CS 106A September 27, 2017 Downloading Eclipse

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

WA2214 Mastering JAX-RS REST Web Services and AJAX Clients - JBoss / Eclipse. Classroom Setup Guide. Web Age Solutions Inc.

WA2387 Hands-On soapui - Classroom Setup Guide. WA2387 Hands-On soapui. Classroom Setup Guide. Web Age Solutions Inc.

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

WA2579 Technical Introduction to Microservices. Classroom Setup Guide. Web Age Solutions Inc.

DSE Setup Guide for Oracle Databases

Welcome to Kmax Installing Kmax

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

Object-Oriented Programming in Java

JPA - INSTALLATION. Java version "1.7.0_60" Java TM SE Run Time Environment build b19

The Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people

Setup and Getting Startedt Customized Java EE Training:

WA2217 Programming Java EE 6 SOAP Web Services with JAX-WS - JBoss-Eclipse. Classroom Setup Guide. Web Age Solutions Inc.

WA2321 Continuous Integration with Apache Maven Jenkins-CI and Nexus. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

WA2621 DevOps Foundations for Java with Git, Jenkins, and Maven. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

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

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

Software Installation Guide

Web Age Solutions Inc. WA2639 Devops with Jenkins, Terraform and Hashicorp Stack. Classroom Setup Guide. Web Age Solutions Inc. 1

SAM4S Receipt Printer JPOS Driver. Mac OS X Installation Manual

This section contains information you should review before using this book. Any updates to the information presented here will be posted at:

Java TM SE 7 Release Notes Microsoft Windows Installation (32-bit)

Getting Started with Java. Atul Prakash

Engr 123 Spring 2018 Notes on Visual Studio

3. Hello World! for IDEA. Java. Summer 2008 Instructor: Dr. Masoud Yaghini

Eclipse Environment Setup

WA2271 Continuous Integration with Jenkins-CI. Classroom Setup Guide. Web Age Solutions Inc.

World Wide Web Service Crashes on WebView

Sherlock Tutorial Getting Started

RELAIS. Installation Guide in Windows Environment

Java with Eclipse: Setup & Getting Started

UNic Eclipse Mini Tutorial (Updated 06/09/2012) Prepared by Harald Gjermundrod

These two items are all you'll need to write your first application reading instructions in English.

1. The Apache Derby database

IWeb. Installation Guide. v5.16.5

POOSL IDE Installation Manual

AP Computer Science A Summer Assignment

Installation Guide - Mac

Cisco Remote Expert Manager Agent s Workstation Setup Guide

Running Java Programs

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

Department of Computer Science. Software Usage Guide. CSC132 Programming Principles 2. By Andreas Grondoudis

Tuesday and Thursday 1:05 pm - 2:25 pm

COMP 110/401 APPENDIX: INSTALLING AND USING ECLIPSE. Instructor: Prasun Dewan (FB 150,

CSCI 201 Lab 1 Environment Setup

Download and Installation Instructions. Java JDK Software for Windows

Lecture (01) Getting started. Dr. Ahmed ElShafee

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

Sample Spark Web-App. Overview. Prerequisites

Life Without NetBeans

Transcription:

Setting up your Computer 1 Introduction On this lab, you will be getting your computer ready to develop and run Java programs. This lab will be covering the following topics: Installing Java JDK 1.8 or higher Installing NetBeans 8.2 or higher Checking Java JDK installation in a terminal window Checking NetBeans installation The screenshots shown herein are for MS Windows, but for Mac computers it should be very similar. If you get stuck in any step, do not hesitate in contacting the lab TA and the instructor. 2 Installing Required Software 2.1 Installing Java JDK To develop Java programs for this course, you will need to install the Java Development Kit, also known as Java JDK. The steps below will guide you to install it. A Installing the JDK in your computer a) Open up an internet browser and search for java jdk download b) Click on the link shown above (Java SE Downloads). In the next web page click on the following button

c) In the new page, scroll down to the following portion and do two things here i) Accept the license agreement ii) Choose the right version of your computer operational system. The internet browser will start downloading the selected file shortly. I would recommend you to use the.exe installer file for MS Windows instead of zip file. d) After the download has finished, run that file and following the installation instructions. I recommend you to accept all the default options that the installer asks you, such as installation directory, etc. e) Upon successful installation, your Java JDK should be located in the c:/program files/java/. In my case, I have multiple versions of Java installed in my machine, and that is what I see in my c:/program files/java/ directory, but I am using Java JDK 1.8.0_92. Take note of the java JDK directory that you might need later on. B Setting up your computer s environment variables a) Check if you need to modify the environment variables. i) Open up a terminal window. In MS Windows click on the Start button and type CMD. Run the cmd.exe program.

ii) In the terminal window, type java version. You should get a description of the java program if your computer can find it. If it cannot find it you will need to modify the environment variable described below. iii) Repeat the above procedure but typing javac version. In my computer, javac is not recognized by the operational system (as shown below). I will need to update my environment variable for that.

PERFORM ITEMS (b) AND (c) BELOW ONLY IF YOUR SYSTEM DID NOT RECOGNIZE THE COMMANDS SHOWN IN ITEM (a). OTHERWISE, SKIP THESE STEPS. b) Setting the JAVA_HOME variable in Windows To set the JRE_HOME or JAVA_HOME variable: i) Locate your Java installation directory If you didn't change the path during installation, it'll be something like C:\Program Files\Java\jdk1.8.0_65 You can also type where java at the command prompt. ii) Do one of the following: Windows 7 Right click My Computer and select Properties > Advanced Windows 8 Go to Control Panel > System > Advanced System Settings Windows 10 Search for Environment Variables then select Edit the system environment variables iii) Click the Environment Variables button. iv) Under System Variables, click New. v) In the Variable Name field, enter either: JAVA_HOME if you installed the JDK (Java Development Kit) or JRE_HOME if you installed the JRE (Java Runtime Environment) vi) In the Variable Value field, enter your JDK or JRE installation path. If the path contains spaces, use the shortened path name. For example, C:\Progra~1\Java\jdk1.8.0_65 vii) Click OK and Apply Changes as prompted You'll need to close and re-open any command windows that were open before you made these changes, as there's no way to reload environment variables from an active command prompt. If the changes don't take effect after reopening the command window, restart Windows.

c) Adding javac to the PATH environment variable i) In the same dialog box that you have created the JAVA_HOME variable, find Path system variable and click on the Edit button d) AT THE END OF THE current path, add a ; and then the path to where javac is located in your computer. In my case it is in the bin directory of the java jdk directory: Previous_existing_paths_here;c:/program files/java/jdk 1.8.0_92/bin e) Reboot your system and redo the test in the terminal window by typing both java version javac version If not working properly yet, please contact Lab-TA or the instructor 2.2 Installing NetBeans IDE a) Open an internet browser b) Research for NetBeans Download

c) Go to the recommended link shown above (https://netbeans.org/downloads) d) As directed above, just download the zip file and extract it somewhere in your laptop. I recommend you to install the Binaries version of it. By clicking in the link above, you will be taken to another webpage, select any site to start downloading the zip file. e) After the download process has been completed, unzip this file somewhere of your choice, such as documents folder. The NetBeans program (netbeans.exe) is under the bin directory of your unpacked folder. Mine is shown below just as a reference, yours probably will be different. To start NetBeans you can double click on netbeans.exe or create a short cut in your desktop for faster access on the next time.

3 Testing your installations 3.1 Testing your Java JDK from the terminal window a) Using any text editor available in your computer, create a new file and place the following statements inside (pay attention to Capitalization) public class Testing { public static void main(string[] args) { System.out.println("Brazilian Greetings!"); } } Save this file as Testing.java. You need to pay attention where you are saving this file, since we will need its path when running our javac and java commands in the terminal window. b) Open up a terminal window and change the current directory to the directory that you have saved your Testing.java (use cd for chanding directory, see example below). c) Run the javac command: javac Testing.java In my case, I do not have admin permissions to change my Windows Environment Path, so I need to type the whole javac path in the terminal window (as shown below) d) After running javac, execute java Testing If you get Brazilian Greetings! in your terminal window, then this test was a success! If not try again and if you get stuck as your TA or the instructor.

3.2 Testing NetBeans IDE a) Run NetBeans b) When IDE is open, go to File >> New Project >> Categories: Java, Projects: Java Application and click Next button. c) Project Name: Testing and click finish d) Add the System.out.println( Brazilian Greetings! ); in the main method

e) Right click anywhere inside the text area and select Run File. In the output window (normally at the bottom of the NetBeans IDE you should see Brazilian Greetings written down, demonstrating that NetBeans was able to successfully compile and run your code. 4 Show results to the Lab TA In each lab you must show your end results to the Lab TA, so that he can grade your work.