New version page

LETU COSC 2103 - Introduction to Java

Documents in this Course
Arrays

Arrays

16 pages

Templates

Templates

17 pages

Methods

Methods

22 pages

Methods

Methods

22 pages

Arrays

Arrays

11 pages

Load more

This preview shows page 1-2-3-4-5-6 out of 17 pages.

View Full Document
View Full Document

End of preview. Want to read all 17 pages?

Upload your study docs or become a GradeBuddy member to access this document.

View Full Document
Unformatted text preview:

1History of JavaJava Class LibrariesFORTRAN, COBOL, Pascal and AdaBASIC, Visual Basic, Visual C++, C# and .NETTypical Java Development EnvironmentFig. 1.1 Typical Java development environment.Creating a Program with JCreatorSlide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15View Flash PresentationsSlide 17111Introduction to Java2 History of Java•Java–Originally for intelligent consumer-electronic devices–Then used for creating Web pages with dynamic content–Now also used to:•Develop large-scale enterprise applications•Enhance WWW server functionality•Provide applications for consumer devices (cell phones, etc.)3 Java Class Libraries•Classes–Include methods that perform tasks•Return information after task completion–Used to build Java programs•Java provides class libraries–Known as Java APIs (Application Programming Interfaces)4FORTRAN, COBOL, Pascal and Ada•FORTRAN–FORmula TRANslator•COBOL–COmmon Business Oriented Language•Pascal–Structured programming•Ada–Multitasking5BASIC, Visual Basic, Visual C++, C# and .NET•BASIC–Beginner’s All-Purpose Symbolic Instruction Code•.NET–.NET platform •Visual Basic .NET–Based on BASIC•Visual C++–Based on C++•C#–Based on C++ and Java6Typical Java Development Environment•Java programs normally undergo five phases–Edit•Programmer writes program (and stores program on disk)–Compile•Compiler creates bytecodes from program–Load•Class loader stores bytecodes in memory–Verify•Bytecode Verifier confirms bytecodes do not violate security restrictions–Execute•JVM translates bytecodes into machine language7Fig. 1.1 Typical Java development environment.8Creating a Program with JCreator•Click on the JCreator Icon•IDE windowappears9Creating a Program with JCreator•Click on File, New, then Project•Project Wizard appears–Choose Java Application template10Creating a Program with JCreator•Give the project a name•Then click Next11Creating a Program with JCreator•You will want the JDK version 1.5•This tab is where you can specify hsa libraryAt this point you can click on FinishAt this point you can click on Finish12Creating a Program with JCreator•Now we create our class (the program) with File, New, and ClassThe Class Wizard appears. Specify a name for the class and make sure Public is chosenFor now, you can proceed with Finish13Creating a Program with JCreator•The wizard creates a template.•Now complete the program with the required commands.14Creating a Program with JCreator•Run the compiler with Build, and CompileFileBuild Output shows in bottom pane. This is where compiler error messages will be displayed.Build Output shows in bottom pane. This is where compiler error messages will be displayed.15Creating a Program with JCreator•To run the compiled program click on Build, and ExecuteFile•Program runs in separate windowWithout Creating a ProjectWithout Creating a Project16View Flash Presentations•Creating a workspace, project, and application•Writing, compiling, running an application1711Introduction to


View Full Document
Loading Unlocking...
Login

Join to view Introduction to Java and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Java and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?