How to Install Java onto your system



Similar documents
Java Software Development Kit (JDK 5.0 Update 14) Installation Step by Step Instructions

Supplement I.B: Installing and Configuring JDK 1.6

Appendix A Using the Java Compiler

Supplement I.B: Installing and Configuring JDK 1.6

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development

Installing Java. Table of contents

Right now, the latest and greatest version of Java available for download is Start with this link to find out more about it

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

How To Configure CU*BASE Encryption

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Installing Java (Windows) and Writing your First Program

Installing the Android SDK

Java Language Tools COPYRIGHTED MATERIAL. Part 1. In this part...

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

Configuring the BBj Jetty Web Server (rev10.02) for OSAS

Practice Fusion API Client Installation Guide for Windows

How to use the Eclipse IDE for Java Application Development

GridWorld Installation Guide

Supplement I.C. Creating, Compiling and Running Java Programs from the Command Window

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

1001ICT Introduction To Programming Lecture Notes

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Magaya Software Installation Guide

How to Install and Setup IIS Server

ilaw Installation Procedure

SAS 9.3 Foundation for Microsoft Windows

Creating a Java application using Perfect Developer and the Java Develo...

Supplement IV.D: Tutorial for MS Access. For Introduction to Java Programming By Y. Daniel Liang

Setting up Sudoku example on Android Studio

Quick Start Using DASYLab with your Measurement Computing USB device

For Introduction to Java Programming, 5E By Y. Daniel Liang

Universal Management Service 2015

Changing Your Cameleon Server IP

BSDI Advanced Fitness & Wellness Software

Witango Application Server 6. Installation Guide for Windows

Installing Eclipse C++ for Windows

etoken Enterprise For: SSL SSL with etoken

Chapter 3 Software Installation

RHEV 2.2: REST API INSTALLATION

IMPORTANT SETUP INSTRUCTIONS! Setup for F9 Version 4.5 for MAS 90 and MAS 200

Server & Workstation Installation of Client Profiles for Windows (WAN Edition)

Super Pro Net TM Network Key Installation and Operation

ContentWatch Auto Deployment Tool

SHORETEL CALL MANAGER Installation Instructions:

Como configurar o IIS Server para ACTi NVR Enterprise

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Lepide Event Log Manager: Installation Guide. Installation Guide. Lepide Event Log Manager. Lepide Software Private Limited

Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

CODESOFT Installation Scenarios

Installation Instruction STATISTICA Enterprise Small Business

SOFTWARE INSTALLATION INSTRUCTIONS

Server & Workstation Installation of Client Profiles for Windows

Getting Started using the SQuirreL SQL Client

Installation Instruction STATISTICA Enterprise Server

Autograph 3.3 Network Installation

Technical White Paper

Run Archive Server for MDaemon in HTTPS

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

Troubleshooting Guide. 2.2 Click the Tools menu on Windows Explorer 2.3 Click Folder Options. This will open a dialog box:

Installation of IR under Windows Server 2008

Introduction to Java

How to Install Eclipse. Windows

Server Edition Administrator s Guide

Installing FileMaker Pro 11 in Windows

This document describes the installation of the Web Server for Bosch Recording Station 8.10.

VPN Remote Access Installation and Configuration Guide Operating System: Windows (XP, Vista, 7 and 8)

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Docufide Client Installation Guide for Windows

FreeFlow Accxes Print Server V15.0 August P Xerox FreeFlow Accxes Print Server Drivers and Client Tools Software Installation Guide

What is My Teamwork? What s new in this release? MY TEAMWORK 5.0 QUICK START GUIDE

new Business Online Technical Troubleshooting Guide

Virtual Office Remote Installation Guide

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Installation Guide for Crossroads Software s Traffic Collision Database

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

4cast Client Specification and Installation

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Android Environment SDK

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

Migrating MSDE to Microsoft SQL 2008 R2 Express

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Network Server for Windows. Overview of the Sequencher Network Page 2. Installing Sequencher Server for the First Time Page 3

Installing Globodox Web Client on Windows 7 (64 bit)

Matisse Installation Guide for MS Windows. 10th Edition

Installing Novell Client Software (Windows 95/98)

Inmagic ODBC Driver 8.00 Installation and Upgrade Notes

Connecting to Delta College Exchange services off-campus

JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle

Download and Installation Instructions. Java JDK Software for Windows

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

8x8 Virtual Office Telephony Interface for Salesforce

Configure SPLM 2012 on Windows 7 Laptop

Global Image Management System For epad-vision. User Manual Version 1.10

QClaims Launch Instructions for Windows

Transcription:

How to Install Java onto your system 1. In your browser enter the URL: Java SE 2. Choose: Java SE Downloads Java Platform (JDK) 7 jdk-7- windows-i586.exe. 3. Accept the License Agreement and choose the correct platform (Windows), and click the Download button. You will be downloading the file jdk-7-windows-i586.exe. 4. Save the file (somewhere where you know where you saved it since you will need to run it.) 5. Double-click the installer and follow the instructions. 6. You now need to tell your computer where it can find the import Java files. The best instructions to complete your installation can be found at the Sun site: You need to add C:\Program Files\Java\jdk1.7.0\bin to the PATH variable. (If you have installed a different version of Java compiler, e.g., jdk1.6.0_18, you should add C:\Program Files\Java\ jdk1.6.0_18\bin to the PATH variable.) How you do this will depend on what operating system you are using. i) In Windows 95/98 add or change the PATH statement in the autoexec.bat file PATH current items; C:\Program Files\Java\ jdk1.7.0\bin ii) In Windows NT - Start, Settings, Control Panel, System, Environment Vars, New or Edit: Add: ;C:\Program Files\Java\jdk1.7.0\bin Click Set or OK iii) In Windows 2000 - Start, Settings, Control Panel, System, Advanced: New or Edit : Add: C:\Program Files\Java\jdk1.7.0\bin Click OK iv) In Windows ME - Start, Run, type msconfig, highlight Path, edit, add v) In Windows XP - Start, Control Panel, double click System icon, open System Control Panel, Advanced, click "Environment Variables", highlight Path, edit,

vi) In Windows Vista - Start, Control Panel, System and Maintenance, System, Advanced system settings, click "Environment Variables", highlight Path, edit, or Click Start, right-click Computer and choose Properties, Advanced system settings, click "Environment Variables", highlight Path, edit, vii) Windows 7 - Start, Control Panel, System and Security, System, Advanced system settings (left column), click "Environment Variables", highlight Path, edit, or Click Start, right-click Computer and choose Properties, Advanced system settings, click "Environment Variables", highlight Path, edit, Note: I had to use ;C:\Program Files (x86)\java\jdk1.7.0\bin since I had installed the 64 bit version previously. This is probably not the case for you. 7. The CLASSPATH variable also needs to be modified. The best instructions to set the classpath variable can be found at the Sun site: http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html (search for: Using the CLASSPATH environment variable) On my system I had to add the classpath variable to the Environment by clicking new and set it to:

C:\Program Files\Java\jdk1.7.0\jre\lib;C:\Program Files\Java\jdk1.7.0;.; 8. You may have to reboot your computer when the installation is complete. Test to see if your installation is working After you've rebooted, in Notepad enter the following program: public class hello public static void main(string[] args) System.out.println("Hello World!"); Save it as hello.java in the C:\ directory 9. Start, run, command 10. Enter: cd.. as many time as it take to get to C:\> (this should be the folder where you stored hello.java) 11. Enter: javac hello.java There should be a slight pause and the another C:\> should appear 12. Enter: java hello 13. Your program should print out: Hello world! 14. Enter: exit to close the DOS window Congratulation - you now have Java running on your system. How to Install JCreator onto your system 0. Install JCreator only after you've successfully installed Java. 1. download the setup file from the following url:

http://www.jcreator.org/download/activate?id=2e3dcf6b090437e3b9d76 a288a911d73 2. Save jcrea450_setup.exe file and run it. How to Install BlueJ onto your system 0. Install BlueJ only after you've successfully installed Java. 1. Go to http://www.bluej.org/download/download.html to download the latest version of BlueJ (version 3.0.4) or Go to http://www.bluej.org/download/download-old.html to download an old version. 2. Once you have loaded the file, go to the Installation Instructions. How to Install TextPad onto your system 0. Install TextPad only after you've successfully installed Java. 1. You may download a trial version of it from: http://www.textpad.com 2. Click: Download menu on the top of the page. 3. Please note, this is not freeware. After you evaluate it, you are expected to pay for your copy. 4. After you have installed Textpad, you may have to go to Configure, Preferences, Tools, Add To get control-1 to work for compiling, control-2 to execute a program. About how to create Java program Choice 1: 1. Using NotePad to produce a.java file. 2. Invoke Commad Prompt. 3. Using cd command to go to the fold where you put your program. 4. Using javac <file name> to compile your program.

5. Using java <file name without.java> to run your program. public class a1q2 / main method prompts input and calls the recursive method public static void main(string[] args) System.out.println("result of fn(" + m + ") is " + computefn(m)); / computefn - the definition of the function input: int output: int calculate f(n) = 3f(N-3) + 4f(N-2) - 5f(N-1) where f(0) = 1, f(1) = 1, f(2) = 3. public static int computefn(int n) if(n==0) return 1; else if(n==1) return 1; else if(n==2) return 3; else return 3 computefn(n-3) + 4 computefn(n-2) - 5 computefn(n-1); Choice 2: 1. Using JCreator to create Java code, compile it and then run it. 2. If your program is to run with an input of integers, you need arrange a statement in the main method, before any other statements as below:

int m = (int)new Integer(JOptionPane.showInputDialog("Enter an integer")); (see the following example.) import javax.swing.joptionpane; public class a1q2 / main method prompts input and calls the recursive method public static void main(string[] args) //input dialog int m = (int)new Integer(JOptionPane.showInputDialog("Enter an integer")); //calculate f(n) = 3f(N-3) + 4f(N-2) - 5f(N-1) where f(0) = 1, f(1) = 1, f(2) = 3. System.out.println("result of fn(" + m + ") is " + computefn(m)); / computefn - the definition of the function input: int output: int public static int computefn(int n) if(n==0) return 1; else if(n==1) return 1; else if(n==2) return 3; else return 3 computefn(n-3) + 4 computefn(n-2) - 5 computefn(n-1); Exercise 1: Analyze implement the above Java program. Exercise 2: Analyze implement the following Java program:

import java.io.; public class AsciiArray public static void main(string args[]) int index=0; byte[] b = new byte[(127-31)2]; for (int i=32; i<127; i++) b[index++] = (byte)i; //break line after every 8 characters if (i%8==7) b[index++] = (byte)'\n'; else b[index++] = (byte) '\t'; //for b[index++] = (byte) '\n'; try System.out.write(b); catch(ioexception e) //main //class