1 / 25

Building Applications with Oracle JDeveloper 10 g

Building Applications with Oracle JDeveloper 10 g. Objectives. After completing this lesson, you should be able to do the following: Create new projects, workspaces, and applications Build Java applications in JDeveloper Enhance user interface frame design

aira
Télécharger la présentation

Building Applications with Oracle JDeveloper 10 g

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building Applications with Oracle JDeveloper 10g

  2. Objectives • After completing this lesson, you should be able to do the following: • Create new projects, workspaces, and applications • Build Java applications in JDeveloper • Enhance user interface frame design • Debug an application by using JDeveloper debugger • Define classes by using JDeveloper • Describe how JDeveloper can be used to build enterprise applications

  3. What Is Oracle JDeveloper 10g? • Oracle JDeveloper 10g provides an integrated development environment (IDE). • Build, compile, and run Java applications by using Oracle JDeveloper. • Use wizards to help build source code. • View objects from many perspectives: code, structure, layout, and so on.

  4. Exploring the JDeveloper Environment Component Palette System Navigator Property Inspector Code Editor

  5. Examining Workspaces • Contain multiple projects • Enable you to view currently used objects Workspace Navigator pane Structure pane

  6. What Are Projects? • Contain related files • Manage project and environment settings • Manage compiler and debug options Project Projectfiles

  7. Creating JDeveloper Items • JDeveloper items areinvoked by selecting File > New. • They are categorized by type: • General • Business Tier • Client Tier • Database Tier • Web Tier • Create any JDeveloper element.

  8. Creating an Application Workspace • In the General category, select Application Workspace to invoke the Property pane.

  9. Specifying Project Details

  10. Selecting Additional Libraries

  11. Adding a New J2SE New J2SE definitions include: • Java executable • A classpath • A source path • A doc path

  12. Looking at the Directory Structure • JDeveloper creates and stores .java and .class files by using the following convention: • <ORACLE_HOME>\jdev\mywork • Followed by the workspacename • Followed by the project name • \classes\<package name>\ • \src\<package_name>\ • Followed by class and src files

  13. Exploring the Skeleton Java Application • Contains application and frame classes

  14. Finding Methods and Fields • Find methods and fields by using the Structure pane.

  15. Supporting Code Development with Profiler and Code Coach • Improve code quality with Code Coach. • Evaluate execution stack with Execution Sample profiler. • Examine heap memory usage with Memory profiler. • Analyze event occurrence and duration with Event profiler for: • JVM events • Business Components for Java events • Custom events

  16. Customizing JDeveloper • Customize the IDE • Look and feel • General environment • Dockable windows • Component Palette • Load preset keymaps • Rename classes and packages by using refactoring.

  17. Using the Help System

  18. Obtaining Help on a Topic Use [F1] to invoke context-specific Help.

  19. Oracle JDeveloper 10g Debugger • Helps find and fix program errors: • Run-time errors • Logic errors • Allows control of execution • Allows examination of variables

  20. Setting Breakpoints • Setting breakpoints: • Manage multiple breakpoints • Manage conditional breakpoints • Define columns displayed in window • Description • Type • Status, and so on • Control scope of action • Global > Workspace > Project

  21. Using the Debugger Windows • View Debug information: • Classes: Displays list of loaded classes and status • Watch: Evaluates and displays expressions • Monitors: Displays information about active monitors • Threads: Displays the names and statuses of all threads • Smart Data: Analyzes source code near execution point • … and more

  22. Stepping Through a Program • Step through a program by using the buttons on the Debugger toolbar: • Start the debugger. • Resume the program. • Step over a method call. • Step into a method call. • Step out of a method call. • Step to the end of the method. • Pause execution. • Stop the debugger.

  23. Watching Data and Variables • The Smart Data tab displays analyzed variables and fields. • The Data tab displays arguments, local variables, and static fields from the current context. • To watch other variables: • Select a variable in the source window and right-click. • Select Watch... at Cursor from the context menu. • View the variable in the Watch tab. • Right-click a data item to modify it.

  24. Summary • In this lesson, you should have learned how: • JDeveloper builds, debugs, and runs all types of Java applications • JDeveloper can be used to develop: • Java applications • Java servlets • JSPs • EJBs • JDeveloper can be used to build enterprise applications

  25. Practice 6: Overview • This practice covers: • Exploring the Oracle JDeveloper 10g IDE • Creating a workspace and project • Including application files from the earlier lesson

More Related