Professional Documents
Culture Documents
• This Document is confidential to Infosys Technologies Limited. This document contains information and data
that Infosys considers confidential and proprietary (“Confidential Information”).
• Confidential Information includes, but is not limited to, the following:
– Corporate and Infrastructure information about Infosys;
– Infosys’ project management and quality processes;
– Project experiences provided included as illustrative case studies.
– < Please list any/all other that is relevant>
• Any disclosure of Confidential Information to, or use of it by a third party, will be damaging to Infosys.
• Ownership of all Infosys Confidential Information, no matter in what media it resides, remains with Infosys.
• Confidential information in this document shall not be disclosed, duplicated or used – in whole or in part – for
any purpose other than _(Please insert as applicable)__ without specific written permission of an authorized
representative of Infosys.
• <Please include this point if applicable> This document also contains third party confidential and proprietary
information. Such third party information has been© Infosys
includedTechnologies Ltd.
by Infosys after receiving due written permissions
and authorizations from the party/ies. Such third party confidential and proprietary information shall not be
disclosed, duplicated or used – in whole or in part – for any purpose other than _(Please insert as
applicable)__ without specific written permission of an authorized representative of Infosys.
Perspectiv
e Bar
Tasks
View
Text Editor
Marker Bar
Project
© Infosys Technologies Ltd. Explorer
Overview
Ruler
Problems
View
Fast View
bar
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential
anytime, anywhere!
Eclipse Workspace
• Workspace is a location on the underline OS whish
stores the projects, their resources and other information
about them
• Eclipse keeps a local change history of Eclipse
resources in workspace, this allows the developer to do
undo, redo operations on resources
• Switching between workspaces is possible by selecting
File-> Switch Workspace option
© Infosys Technologies Ltd.
Outline
View
Task List
Detached
Problems
View
View stack
Fast view
bar
Step 4 : Project is
ready.
plugin directory
• This directory can be located in Eclipse installation home
directory
Introduction…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 65
anytime, anywhere!
Introduction
• Netbeans Integrated Development Environment is an
Open source tool from Sun Microsystems.
• It is built using Java Programming Language.
• It has lot of features that increases productivity.
• It is the first IDE that supports the complete Java 6.0
features.
• Netbeans IDE supports various Kinds(JSE, JME, JEE,
Ruby, etc) of applications development.
© Infosys Technologies Ltd.
• Netbeans IDE is built on open standards which makes
the application development process portable.
Project creation…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 69
anytime, anywhere!
Creating a simple Java Application
• Java Application can be created in few steps.
• Steps involved are
– Select File New Project
– In the wizard that opens, select Java from categories
and Java Application from Projects and select Next.
– It the wizard that opens, provide the project details
such as Project Name, Location, Project Folder Name
and specify the main class details.
© Infosys Technologies Ltd.
• For Example: let the Main class be
com.infosys.calculator. CalculatorDemo. Where
CalculatorDemo represents the class name and
com.infosys.calculator represents package
– Click on Finish
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 70
anytime, anywhere!
Project Window
Refactor…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 82
anytime, anywhere!
Refactoring
• It is the process of changing the structure of the code so
that the code becomes easy to read and understand.
• Refactoring does not change the functionality of the
code.
• To Refactor
– Right click on the class in the source editor
– Select the required sub menu.
© Infosys Technologies Ltd.
ANT…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 88
anytime, anywhere!
Build scripts
• For all the IDE generated projects the build scripts will be
in build.xml and build-impl.xml.
• The build.xml is the master file. This imports the build
scripts from build-impl.xml
• The build scripts are defined as targets
• The targets corresponds to IDE operations such as
compilation, running etc.
• The build file has a simple ©structure with root project tag
Infosys Technologies Ltd.
with set of target tags. Each target tag depends on other
target tags.
• When a target tag is executed, it executes all the targets
that the target depends first and then the target.
CVS…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 94
anytime, anywhere!
CVS(Concurrent Versions System)
• It is a version control system.
• In a collaborative software development environment
CVS helps in keeping track of changes, conflicts etc in
the project files.
Debugging…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 99
anytime, anywhere!
Debugging
• It is the process of identifying the problems in the
application.
• Debugging console and Debugging Windows:
– While debugging the application the status of the
debugging program will be displayed in the debugging
console. This will be displayed in the lower window.
– In addition to provide various specific debugging
details. For example: Variables window shows the
© Infosys Technologies Ltd.
values of all the local variables and fields.
– To open Debugging window select Window
Debugging Respective window.
Achieves…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 111
anytime, anywhere!
JAR – Java Archive Files
• These files are meant for bundling group of classes and
the associated resources together.
• Bundling JARs helps in
– Downloading group of classes in a single shot
– Porting application as a single file
– Creating extension libraries
– Signing for Security
© Infosys Technologies Ltd.
Unit testing…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 116
anytime, anywhere!
Unit Testing in NetBeans IDE
• Using NetBeans IDE, JUnit tests can be performed in a
simplified way.
• NetBeans IDE 6.7.1 supports JUnit versions 3.x and 4.x
• IDE support
– Creating and Running JUnit Tests
– Creating and Running JUnit Test Suites
Running Tests
• Right Click on the Test Class and Select Test File.
• Observe the test results in the Test Result Window.
Plug-ins…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 121
anytime, anywhere!
NetBeans Plugins
• NetBeans IDE is built in modular fashion.
• At the core is the NetBeans platform, which itself has lot
of plugin modules, to provide support for various
technologies and tools.
• The support for new technologies by IDE can further be
extended by adding the appropriate plugin modules
• The plugin modules are available as *.nbm (NetBeans
Modules) files.
© Infosys Technologies Ltd.
• The plugins can be downloaded from the NetBeans
plugins Portal http://plugins.netbeans.org/PluginPortal/
Profiling…
We enable you to leverage knowledge
© 2008, Infosys Technologies Ltd. Confidential 125
anytime, anywhere!
Need for profiler
• Any application should have ability to scale up as the
number of users increases.
• The performance of the application should not degrade,
as the load increases.
• The application can’t be scalable if it consumes more
resources such as CPU cycles and memory.
• Profilers helps in detecting memory and CPU utilization
issues
© Infosys Technologies Ltd.
Threads Section
Profiler VM Telemetry
Control Overview
Panel Window