Creating a Program with JCreator Click on the JCreator

Download Report

Transcript Creating a Program with JCreator Click on the JCreator

1
• Introduction to Java
2
History of Java
• Java
– Originally for _______________ consumerelectronic devices
– Then used for creating Web pages with
_______________
– Now also used to:
• Develop large-scale enterprise applications
• Enhance WWW ___________ functionality
• Provide applications for consumer devices (cell
phones, etc.)
3
Java Class Libraries
• Classes
– Include methods that ________________
• Return information after task completion
– Used to build Java programs
• Java provides class ________________
– Known as Java APIs
(A_______________
P________________
I ________________
4
FORTRAN, COBOL, Pascal and Ada
• ___________________
– FORmula TRANslator
• COBOL
– COmmon ______________ Oriented Language
• Pascal
– ______________ programming
• Ada
– Multitasking
5
BASIC, Visual Basic, Visual C++, C# and
.NET
• BASIC
– Beginner’s All-Purpose ___________ ________ Code
• .NET
– .NET platform
• Visual Basic .NET
– Based on BASIC
• _______________ C++
– Based on C++
• C#
– Based on C++ and ___________________
6
Typical Java Development Environment
• Java programs normally undergo five phases
– Edit
• Programmer __________ program (and stores program on
disk)
– Compile
• Compiler creates bytecodes from program
– __________________
• Class loader stores bytecodes in memory
– Verify
• _______________ Verifier confirms bytecodes do not violate
security restrictions
– Execute
• JVM translates bytecodes into machine language
7
Fig. 1.1 Typical Java
development
environment.
8
Creating a Program with JCreator
• Click on the JCreator ____________
• IDE
window
appears
9
Creating a Program with JCreator
• Click on File, New, then P______________
• Project Wizard appears
– Choose Java ________________ template
10
Creating a Program with JCreator
• Give the project a _________________
• Then click Next
11
Creating a Program with JCreator
• You will want the JDK version 1.5
At this point you can click on Finish
12
Creating a Program with JCreator
• Now we create our class (the program) with
File, New, and Class
13
Creating a Program with JCreator
• The wizard creates a __________________.
• Now complete the program with the
required commands.
14
Creating a Program with JCreator
• Run the compiler with Build, and
CompileFile
___________________ shows in bottom pane. This is
where compiler error messages will be displayed.
15
Creating a Program with JCreator
• To run the compiled program click on Build,
and _________________
• Program runs in separate window
16
View Flash Presentations
• Creating a workspace, project, and
application
• Writing, compiling, running an application