Sunteți pe pagina 1din 26

Getting Started with JDeveloper

Copyright 2008, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to do the


following:
List the benefits that JDeveloper provides for application
development
Use the features of the JDeveloper IDE
Define IDE preferences
Create applications, projects, and connections in
JDeveloper

2-2 Copyright 2008, Oracle. All rights reserved.


Describing the Benefits of Using JDeveloper

Standard, open, and


extensible
Improved productivity
Visual and declarative
Simpler development of
Java EE applications
Productivity with Choice
Technology stacks
Development approaches
Development platform
Data sources
Application servers

2-3 Copyright 2008, Oracle. All rights reserved.


Launching JDeveloper

You can launch


JDeveloper by:
Double-clicking
jdeveloper.exe in the
<JDev Home> directory
Starting from the command
line or a shortcut pointing to
jdev.exe in the <JDev Home>\jdev\bin directory
You can specify flags:
For the user directory:
-J-Dide.user.dir=<path>
For editor windows:
-noreopen

2-5 Copyright 2008, Oracle. All rights reserved.


Defining JDK and Role

When you install or


launch JDeveloper, you
need to specify:
Path to java.exe
A developer role

2-6 Copyright 2008, Oracle. All rights reserved.


Using JDeveloper Features

JDeveloper features that facilitate ease of application


development include:
Application Navigator
Database Navigator
Editor (code or visual editors)
Component Palette
Resource Palette (IDE and Application)
Data Controls panel
Structure Window
Property Inspector
Log Window

2-7 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Application Navigator

Expandable Panels
Has expandable, minimizable panels to
display:
Projects
Application resources
Data controls
Recently opened files

Minimizing a Panel

Restoring a Panel

2-8 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Database Navigator

The Database Navigator:


Shows both IDE and application connections
Enables you to:
View database elements Delete connections
Filter the display Change connection properties
Create new connections Open SQL Worksheet

Create new Apply


connection filter

2 - 10 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Editors

Edit code: Visually edit task flows,


diagrams, and pages:

Edit
properties:

2 - 11 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Component Palette

The Component Palette enables you to:


Display the components available to drag to visual editor
Search for components
Display the favorites and recently used components

2 - 13 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Resource Palette

Toolbar: Create/Import or Search

The Resource Palette:


Contains two types of
resources:
Catalogs
Connections
Provides single searchable view
of and access to many types of
resources
Facilitates sharing resources
among developers

2 - 14 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Structure Window

The Structure Window provides:


A tree view of selected document or object
The ability to: Show Methods, Fields,
View in different Sort Static / Public Members
New View
ways
Navigate Freeze / Synch
Unfreeze with
Editor

2 - 15 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Property Inspector

2 3 4

6 7
5
8

2 - 16 Copyright 2008, Oracle. All rights reserved.


Using JDevelopers Log Window

The Log window:


Displays JDeveloper
messages, such as
logging and compilation
messages
Has one or more tabs:
A Messages tab and additional
tabs depending on what is occurring
Displays standard output (such as
System.out.println() messages)
Has context menu for clearing, wrapping, saving output,
searching, and so on

2 - 17 Copyright 2008, Oracle. All rights reserved.


Working with JDeveloper Windows

Many of the windows in JDeveloper can be:


Maximized or restored
Opened or closed
Split or unsplit
Repositioned
Docked or undocked
Resized

2 - 18 Copyright 2008, Oracle. All rights reserved.


Setting IDE Preferences

Select Tools > Preferences to set options:

2 - 19 Copyright 2008, Oracle. All rights reserved.


Getting Started in JDeveloper

To build an application in JDeveloper, you need to define:


An application
One or more projects
A database connection

2 - 20 Copyright 2008, Oracle. All rights reserved.


Creating an Application in JDeveloper

2 - 21 Copyright 2008, Oracle. All rights reserved.


Using the Application Overview

Application Overview shows It enables you to:


details about the applications: Access:
Java files Cue cards
XML files Tutorials
Offline databases Samples
Page flows Guided steps
Detailed help
Web pages
ADF Business Components Create new objects
ADF binding files
EJB 3.0
Web services

2 - 23 Copyright 2008, Oracle. All rights reserved.


Creating a Project in JDeveloper

2 - 24 Copyright 2008, Oracle. All rights reserved.


Creating Database Connections

Two types:
IDE:
Available to be added to any application
Create in Database Navigator or Resource Palette
To add to an application, drag to Application Resources or to
an application in Database Navigator
Application:
Owned by a specific application
Create in Database Navigator or Application Resources

2 - 26 Copyright 2008, Oracle. All rights reserved.


Creating a Database Connection
in JDeveloper

1 2

3 5
4

2 - 27 Copyright 2008, Oracle. All rights reserved.


Describing the Course Application

2 - 29 Copyright 2008, Oracle. All rights reserved.


Presenting the Storefront
User Interface

2 - 30 Copyright 2008, Oracle. All rights reserved.


Summary

In this lesson, you should have learned how to:


List benefits that JDeveloper provides for application
development
Use the features of the JDeveloper IDE
Define IDE preferences
Create applications, projects, and connections in
JDeveloper

2 - 31 Copyright 2008, Oracle. All rights reserved.


Practice 2 Overview:
Using JDeveloper

This practice covers the following topics:


Setting preferences for the IDE
Creating a JDeveloper application, project, and database
connection
Viewing the course application in a browser and identifying
functionality

2 - 32 Copyright 2008, Oracle. All rights reserved.

S-ar putea să vă placă și