Developer Tools
JDeveloper
You can quickly create a project in which to organize your application files, and create a Java class. Then work in JDeveloper's IDE to edit, compile, and run your application. While getting started, you can customize the project properties and rearrange IDE windows to meet your needs, and use the Help Center to find relevant information.
Create a New Application and Project: Use the Create Application wizard to create a new application and project for your Java application.
Create a Java Class: Use the Create Java Class dialog to create a class file and specify the details.
Edit Source Files: Use the Java source editor, which provides functionality such as Java Code Insight and import statement assistance, to edit your source files.
Set Project Properties: Use the Project Properties dialog to change project settings for the application.
Profile: Use the profiler to find programming inefficiencies, performance problems, and memory leaks in your application code.
The application control file is the highest level in the organizational structure. It stores information about the objects you are working with, while you are creating your application. It keeps track of your projects and the environment settings while you are developing your Java program. [ tell me more...]
MyJavaApplication to follow along with the example.
The Application Navigator is your view into the files that make up the different applications, organized into application control files and projects. Additionally, the Application Navigator allows you to customize the components and level of components that make up your application. [ tell me more...]
When you create your application and project files, the Application Navigator should look like this: [ tell me more...]
New classes can be created and added to your project after you build the initial set of project files. [ tell me more...]
The Structure window offers a structural view of the data in the document currently selected in the active window of those windows that participate in providing structure: the Application Navigators, the editors and viewers, and the Property Inspector. For a Java file, you can view code structure, UI structure, or UI model data. [ tell me more...]
When you create your Java class, the Application Navigator should look like this, if all nodes are expanded: [ tell me more...]
The Create Field dialog lets you create a new field of a given type, and set modifiers for the field. You can also generate event notifications when the property is changed. [ tell me more...]
greeting as the field name. Confirm that
String is selected as the type and
private is selected as the scope.
name.
main()
method. For example, create a
BufferedReader object, and use
System.out to get the name and greeting and then output it.
Features available to you in the Java source editor include: [ tell me more...]
If you added the code sample and import statements, the code in the source editor should look like this: [ tell me more...]
The Project Properties dialog allows you to set properties such as source paths, output paths, the class path, dependencies on other projects, and the default run target. [ tell me more...]
JDeveloper allows you to control how your application is run, including the default run target, JVM, console I/O settings, and proxy information by selecting and editing the Default profile on the Run/Debug/Profile page of the Project Properties dialog. [ tell me more...]
Hello in the
Program Arguments
field.
Project properties are not viewable in the IDE after you close the dialog, but you can easily display them again by selecting the project node and clicking the
Project Properties icon in the Application Navigator toolbar. [
tell me more...]
Since the default run configuration tool settings specify that the project will be compiled before running, you do not need to compile the project manually. Source files will always be saved and compiled prior to running, unless you change this setting. [ tell me more...]
Although your code is compiled before running, you can alternatively compile your code at any time. You can compile several nodes in an application at once, for example, the entire application, the entire project, or specific Java files. To start the compiler, right-click a node in the Application Navigator and choose Make or Rebuild. [ tell me more...]
Hello" in the
Input field and press Enter.
World" in the
Input field and press Enter.
When you run a class file in JDeveloper, the Log window opens and displays details about the running process. [ tell me more...]
You can customize various debugger window settings, including the column resize mode, and set the debugger start option by choosing
Tools
Preferences
Debugger
. [
tell me more...]
BufferedReader reader = new BufferedReader line to display a
breakpoint icon.
These icons are available from the toolbar, to assist you in debugging: [ tell me more...]
When you start the debugger, the Log window opens and displays the debugging trace. [ tell me more...]
The profiler helps you find programming inefficiencies, performance problems, and memory leaks in your application code. You can specify classes and packages to include and exclude by choosing
Tools
Preferences
Profiler
. JDeveloper provides both CPU and memory profiling. [
tell me more...]
These items are available from the toolbar in the profiler window: [ tell me more...]
The CPU Profiler displays data in two windows: Hotspots and Call Stacks. [ tell me more...]
Copyright © 1997, 2009, Oracle. All rights reserved.