Introduction To JDeveloper - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

Introduction To JDeveloper

Description:

Develop and debug Java applications. Develop and debug Java web applications ... Unzip all files into d:JDev (or another drive or directory that's what I use) ... – PowerPoint PPT presentation

Number of Views:146
Avg rating:3.0/5.0
Slides: 31
Provided by: chrisb82
Category:

less

Transcript and Presenter's Notes

Title: Introduction To JDeveloper


1
Introduction To JDeveloper
  • Chris Bowlds
  • Senior Oracle Consultant
  • chris.bowlds_at_casetech.net
  • www.casetech.net
  • www.chrisbowlds.com

2
Agenda
  • JDeveloper product overview
  • From download to deploy
  • Obtaining JDeveloper
  • Installing JDeveloper
  • Develop and debug Java applications
  • Develop and debug Java web applications
  • Deploy Java web applications

3
JDeveloper product overview
  • JDeveloper is a Java Integrated Development
    Environment (IDE) from Oracle Corporation.
  • Develop any type of Java
  • Applications
  • Web Applications
  • Applets
  • Wireless Applications
  • Integrated, and featuring embedded version of,
    Oracle Objects for J2EE (OC4J).

4
Obtaining JDeveloper
  • Download from Oracle TechNethttp//technet.oracle
    .com/software/products/jdev/content.html
  • Version 9.0.3.2 details
  • Download zip 151 MB
  • Installed 264 MB
  • So, have 415 MB free at the very least before you
    start

5
Installing JDeveloper
  • Unzip all files into d\JDev(or another drive or
    directory thats what I use)
  • Make sure to use folder names from the zip file
  • Make a shortcut on your desktop
    tod\JDev\jdev\bin\jdevw.exe
  • The easiest Oracle install ever!

6
A First Look
  • Start JDeveloper (and wait for it to start), and
    youll see
  • A welcome screen, with links to documentation
  • An empty System Navigator in the upper left,
    showing
  • Workspaces
  • Connections

7
Workspaces and Projects
  • Workspaces
  • Group related projects
  • File extension .jws
  • Projects
  • Group related source files (.java, .class,
    .jar, .jsp, etc.)
  • File extension jpr
  • Store settings, such as compiler options

8
Create a Workspace and Empty Project
  • Right click Workspaces -gt New Workspace
  • Fill in a workspace location and name
  • Leave Add a New Empty Project checked
  • Fill in a project location and name

9
Create a Workspace and Empty Project
10
Add Files To A Project
  • Highlight the Project, right click -gt New Class
  • Pick a name, package, and other details
  • Make sure Generate a Main Method is
    checked(since were building a Java application
    first)

11
Add a Class to a Project
12
Code, Compile and Run
  • Add a method and call it
  • Compile AltF9 or Project-gtRebuild ...
  • Run F11 or Run-gtRun ...

13
(No Transcript)
14
Breakpoints and Debugging
  • Set a breakpoint F5 or click the gutter
  • Run in debug modeShift F9 or Debug-gtDebug ...
  • Step over F8
  • Step in F7
  • Step out ShiftF7
  • Run to next breakpoint F9
  • Demonstration

15
Creating a Web Application Project
  • Right click a workspace -gt "New Project
  • General-gtProjects Project Configured for a New
    Web Module

16
Creating a Web Application Project
  • Step through the wizard
  • Directory Name, File Name, Document Root

17
Add a Servlet
  • Right click project-gtNew
  • Web Tier-gtServlets HTTP Servlet
  • Right click web.xml-gtSettings, add a
    servlet-mapping

18
Add a Servlet
19
Add a Servlet
20
Code, Compile and Run
  • Customize the generated code
  • Compile AltF9 or Project-gtRebuild
  • Run F11 or Run-gtRun ...
  • An embedded OC4J server is started and web
    browser launched, making the web app run
    completely from your computer!

21
(No Transcript)
22
Code, Compile and Run
23
Breakpoints and Debugging
  • Works for web applications due to embedded OC4J
    integration.
  • Set breakpoints and step through code just like
    before.
  • Breakpoints will be hit every time code runs
    every time you refresh the browser.

24
Project Settings
  • Contain project wide defaults, paths, compiler
    options, and other settings.
  • You'll need to know this if your code depends on
    other JAR files
  • Just double click your project, or right click -gt
    Project Settings

25
Deploying an Application
  • Highlight the project, right click-gtNew
  • General-gtDeployment Profiles JAR File - Simple
    Archive
  • Save as TestApplication.deploy
  • Fill in dialog
  • JAR Options gt Main class name
    net.casetech.otsig.jdevintro.TestApplication
  • Right click .deploy file-gtDeploy to JAR file
  • Run it java -jar TestApplication.jar

26
Deploying an Application
27
Deploying an Application
28
Deploying a Servlet
  • Highlight the project, right click-gtNew
  • General-gtDeployment Profiles WAR File - J2EE Web
    Module
  • Save as TestWebapp.deploy
  • Accept defaults in dialog, press OK
  • Right click .deploy file-gtDeploy to WAR file
  • Tomcat deploy
  • Copy WAR file to webapps directory and start
    Tomcat.
  • OC4J deploy
  • Right click-gtDeploy to-gt...
  • Run with OC4J
  • http//localhost8888/Test-TestWebapp-context-root
    /TestServlet

29
Deploying a Servlet
Accept defaults in WAR Deployment Profile
Settings
30
Contact Information
Chris Bowlds chris.bowlds_at_casetech.net www.chrisb
owlds.com
202 543 4499
GSA IT Schedule GS-35F-0605M
www.casetech.net
Write a Comment
User Comments (0)
About PowerShow.com