Lecture 2 February 3, 2000. Installing PFE Just unzip the file you download into any directory, such as C:\Program Files\PFE You may right-click on pfe32.exe.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
Advertisements

Introduction to Java 2 Programming Lecture 3 Writing Java Applications, Java Development Tools.
Using Java without BlueJ BlueJ projects A BlueJ project is stored in a directory on disk. A BlueJ package is stored in several different files.
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
JDK, Jan Pettersen Nytun - HiA 1 The Java Programming Environment: The programmer write source code with a text editor. The programmer write source code.
1 Introduction to Java and Applet Lecture 3 from Chapters 1 and 2 of the complete reference.
1 Introduction to Java and Applet. 2 Download Java Compiler (1)
VIM: The basics Tang Wai-Chung, Matthew (MaFai) 29/12/2006.
Object-Oriented Enterprise Application Development Javadoc Last Updated: 06/30/2001.
Using Java without BlueJ Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling BlueJ projects A BlueJ.
Using Java without BlueJ Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling BlueJ projects A BlueJ.
Lab 1 Instructor: Jolanta Soltis.
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
SERVLETS.
Java and Project Delivery E&CE 250 Winter 2002
Java Programming, 2E Introductory Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
Chapter 1: Creating Java Programs
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
How Java Programs Work MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation ©Akhilesh.
Introduction to Java. 2 Module Information Programming conceptsPrerequisites Beginners in JAVATarget Audience This module will provide you a solid grounding.
Javadoc. The Plan ● What is Javadoc? ● Writing Javadoc comments ● Using the Javadoc tool ● Demo ● Practice.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
1.  At the end of this slide, student can:  Explore tools, features, properties and interface of the Textpad.  Creating a new project.  Open and run.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Java Environment CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Program documentation using the Javadoc tool 1 Program documentation Using the Javadoc tool.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
CPSC1301 Computer Science 1 Overview of Dr. Java.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Javadoc: Advanced Features & Limitations Presented By: Wes Toland.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Lecture 8 February 29, Topics Questions about Exercise 4, due Thursday? Object Based Programming (Chapter 8) –Basic Principles –Methods –Fields.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
Javadoc A very short tutorial. What is it A program that automatically generates documentation of your Java classes in a standard format For each X.java.
DOS and the Command Line CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University.
Computer Science 101 Spring 2000 Section E8TBA Registration Code 1693 Dr. Christopher Vickery.
23-October-2002cse JavaIntro © 2002 University of Washington1 Intro to Java CSE 413, Autumn 2002 Programming Languages
JavaDoc and Contracts Spring Documenting Contracts with JavaDoc Contract model for methods Preconditions Postconditions JavaDoc Industry standard.
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,
CS 4244: Internet Programming Network Programming in Java 1.0.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Javadoc Summary. Javadoc comments Delemented by /** and */ Used to document – Classes – Methods – Fields Must be placed immediately above the feature.
Java Doc Guideline R.SANTHANA GOPALAN. Java Doc Guideline Audience Internal Developers PQA - who write test plans PPT – who write the documentation Customers.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
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.
Creating a Java Application and Applet
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Objects First With Java A Practical Introduction Using BlueJ Using Java without BlueJ 1.0.
Today Javadoc. Packages and static import. Viewing API source code. Upcoming Topics: –protected access modifier –Using the debugger in Eclipse –JUnit testing.
Installing and Using Evolve Evolve is written in Java and runs on any system with Java 1.6 Download Evolve from Unzip.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Applications Active Web Documents Active Web Documents.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter Two Applet vs. Application
Introduction to javadoc
Introduction to javadoc
Presentation transcript:

Lecture 2 February 3, 2000

Installing PFE Just unzip the file you download into any directory, such as C:\Program Files\PFE You may right-click on pfe32.exe and drag it to your desktop to create a shortcut there.

Setting UP PFE Use Options->Preferences to set up: –Associations –Backup Policy –Others you may be interested in Use Options->Default Modes to set up: –Edit Mode Groups (Make one for Java Files) –Edit Modes to set: Input (auto-indent, strip trailing blanks) Language Awareness (use “C”) Text Formatting (Use “Soft Tabs” every 2, 3, or 4 characters; enable text wrapping at column 72 so you can see when lines are too long.)

Using PFE When you press Enter after an opening brace (‘{’), the cursor should automatically indent to a new level. Typing a closing brace will return to the previous indentation level. Put the cursor next to a brace, bracket, or parentheses and type Control-B to see the matching item. Press F-11 to compile your Java source file. –Be sure PFE’s current directory is the one containing the file (File->Change to File Directory). Customize keystrokes with Options->Key Mapping

JDK Commands javac [-classpath path] [-deprecation] javadoc -d -author @throws java javap appletviewer file name jar [ctx]vf file name

javac javac [-classpath path] [-deprecation] –Compiles one or more source files (names end with “.java”) into class files (names end with “.class). –One class file generated for every class or interface defined in the source files. –If a source file refers to a class that has not been compiled yet, that class will be compiled automatically. –If you use an obsolete method you will get a “Deprecated” message. Recompiling with “- deprecation” will give you details about which method(s) are obsolete.

javadoc javadoc -d -author @throws –Generates HTML documentation for classes.

java –Create a Java Virtual Machine (JVM). A program that simulates a hypothetical CPU There are JVMs for many different real CPUs –Intel Pentium (PC) –Motorola/IBM Power PC (Macintosh G3/G4)) –Compaq Alpha (forbin) –Load the class file named on the command line into the JVM’s memory. –Invoke the main() method in that class.

javap –Prints the signature of each method in a class. –Can handle all class files in all directories listed in CLASSPATH.

appletviewer appletviewer file name –The file has to be the name of a document that contains an HTML tag. –Used for developing applets without using a browser. Also useful if your browser doesn’t support Java 2.

jar jar [ctx]vf –Specify exactly one of c, t, x. c Create a jar file t Test (list the contents of) a jar file x Extract files from a jar file. –v produces “verbose” (wordy) output. –f says that the next thing in the command is the name of the jar file Jar files are really zip files. One or more files compressed and put into a single file.