Wednesday, April 30, 2008

Testing Your Work in Netbeans IDE Ver. 6.X :

Now build and run your project.

  1. In the Projects window, right-click the JavaPrj node and choose Build from the pop-up menu.
  2. In the Projects window, right-click the JavaPrj node and choose Run from the pop-up menu. The Run Project dialog box appears.
  3. In the Run Project dialog box, click OK to select the bankpack.AccountTest as the main class. The IDE executes the application and displays the following output in the Output window.

Wednesday, April 2, 2008

Version Control in 6.1 beta release :


Developer Collaboration combined with the integrated file version control makes the NetBeans IDE a powerful tool for your distributed development team.

Integrated Version Control Tools

The IDE recognizes your existing version-controlled directories automatically. Context menus allow you to quickly update, check out, compare (diff), and rename files, and commit modifications.

CVS, Subversion, Mercurial*

Choose between the three most popular version control systems: CVS, Subversion or Mercurial. The Subversion implementation supports file, http, https, svn, and svn+ssh authentication protocols. The CVS implementation supports pserver, ext, local and fork authentication protocols. (*) A Mercurial plugin is available from the Plugin Manager (Tools > Plugins).

File Status and History

Use the Versioning window to see all recent changes in a directory with one glance. Badges and colors on file names inform you about the file status. Get a quick overview of each file's history, read commit log messages, and roll back changes to previous versions if necessary.

Line-Based Diff Viewer

New, removed, and modified lines are clearly color-coded in the Editor's left sidebar, and quick navigation marks are placed in the errorstripe to the right. Clicking on the left sidebar allows you to roll back individual changes, or to open the Diff Viewer.

Use the Diff Viewer to compare two files side by side, line by line, if immediate and transparent conflict resolution is necessary. The Diff viewer includes a full-featured editor pane so you can resolve merge conflicts in the current file in an intuitive way.

Remote Project Sharing

With the Developer Collaboration plugin* you share NetBeans projects in real time over the network. You can review your partners' work, or allow them to make remote changes to your project: All invited parties are able to compile, debug, profile, and run the shared application, and you can watch each other make changes to the source code.

Developer Collaboration Chat

Discuss source code in style with remote developers: The Developer Collaboration plugin* allows you to send instant messages in plain text, XML, HTML, or Java, complete with syntax highlighting.

Editor's Features in 6.1 beta release :

Editor 6.1 Features :

The language-aware editor highlights code syntactically and semantically, and assists you with smart code-completion and improved navigation.

Language-Aware Editor

An IDE is much more than a text editor. The NetBeans editor indents lines, matches words and brackets, and highlights source code syntactically and semantically. The editor supports several languages including Java, Ruby, C/C++, XML, HTML, RHTML, JavaScript, and JSP. It can be extended to support any other language.


Live Parsing

The IDE parses the source code live while you type. This way the editor is able to immediately mark errors and highlight occurences. Tooltips and editor glyphs unobtrusively display hints, quick fixes, warnings and language documentation.

Refactoring

The IDE's refactoring actions allow you to restructure code without breaking it. For example, when you rename an identifier or move a method to another class, don't use Search and Replace: The IDE can identify and update all occurences instantly.

Smart Code Completion

The editor provides automatic code completion in several languages, including Java, Ruby, XML, C/C++, HTML, RHTML, JSP, and JavaScript. While you type, it lists possible completions: The most obvious and common options are listed at the top, but you can always choose from the full set of options at the bottom.

Go to File, Go to Type

Open any file or type with one quick keyboard shortcut, or go directly to a declaration with a single click. In the Go To dialogs you can type in file or type names using camel case and even wild cards, and do a case sensitive search over all open projects.

Insert Code

The editor can generate code for you in Java or Ruby. A dialog is provided to give you complete control over which methods are created and which class attributes they access.

You can override methods and generate dynamic code blocks such as loops, javadoc and accessors. With a few keystrokes you insert commonly used code snippets from live templates, including a rich set of surround-with code.

Inspect Members

Inspect the members of any Java class in a convenient popup window. Use filters to control the level of detail that is displayed.

Inspect Hierarchy

Inspect the hierarchy of any Java class in a convenient popup window that can display base classes and interfaces and derived classes and interfaces. Use filters to control the level of detail that is displayed.

File History

You can always use a file's Local History to view recent modifications and revert changes, even if the file is not handled by a version control system.

Navigation

Use the Navigator's Members and Hierarchy Inspectors to navigate within files fast. The error stripe gives you an immediate overview of all highlighted lines in a file: With a single click, you jump to errors, hints, annotations, or search results.

Fully Configurable User Interface

Use keyboard shortcuts or click configurable toolbar icons to access tools for compiling, refactoring, profiling, debugging and unit testing. Editor fonts and colors can be fully customized. All windows can be individually positioned and split vertically or horizontally.


Required Software for 6.1

Required Software for 6.1 :

NetBeans IDE runs on the J2SE (Java SE Development Kit) JDK 5.0 Update 14 and higher (including JDK 6.0), which consists of the Java Runtime Environment plus developer tools for compiling, debugging, and running applications written in the Java language.

You can download the JDK for your platform from one of the sites listed below:

Note: You can download archived versions of the JDK at http://java.sun.com/products/archive/index.html.

Recommended Hardware Configurations for 6.1

Recommended Hardware Configurations

  • Microsoft Windows XP Professional SP2:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 1 GB
    • Disk space: 1 GB of free disk space

  • Microsoft Windows Vista:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 1 GB
    • Disk space: 1 GB of free disk space

  • Ubuntu 7.x:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space

  • Red Hat EL 4:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space

  • Solaris OS version 10 (SPARC):
    • Processor: UltraSPARC IIIi 1 GHz
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space

  • Solaris OS version 10 (x86/x64 platform edition):
    • Processor: AMD Opteron 1200 Series 2.8 GHz
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space

  • Macintosh OS X 10.4.9 Intel:
    • Processor: Dual-Core Intel
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space

  • Macintosh OS X 10.4.9 PPC:
    • Processor: PowerPC G5
    • Memory: 1 GB
    • Disk space: 850 MB of free disk space
    For more information, see Using NetBeans on Mac OS X.

Supported Technologies :

NetBeans IDE 6.1 Beta supports the following technologies and has been tested with the following application servers. If you plan to use versions of JBoss, WebLogic, or Struts other than those explicitly listed, please note that you may encounter unpredictable IDE behavior as a result of the technologies being external interfaces which the project team has little or no control over.

6.1 beta release new features addition :

What's New in 6.1 Beta Release :

NetBeans IDE 6.1 is a significant update to NetBeans IDE 6.0 and includes the following changes:

  • A new window system that includes transparency.
  • Sharability of projects. This new feature in default Java, Web and all J2EE project types allows to create projects that share definitions of libraries. That in turn allows to create self-contained projects or set of projects that can be built from the command line, on continuous integration servers and by users of other IDEs without problems.
  • Javadoc and sources association. Now any JAR item on the project classpath can be associated with its Javadoc and sources too.
  • JSF CRUD Generator. With this feature, you can generate a JavaServer Faces CRUD application from JPA entity classes.
  • New MySQL support in Database Explorer. This feature allows you to register a MySQL Server, view databases, view, create, and delete databases, easily create and open connections to these databases, and to launch the administration tool for MySQL. This also allows you to easily create NetBeans sample databases so that following tutorials, blogs, and so on is significantly easier.
  • Inspect Members and Hierarchy Widnows. Inspect Members and Hierarchy actions now work when the caret in the Java Editor is on a Java class for which there is no source available.
  • Support for Java Beans. You can now view Java Bean patterns in the Navigator and BeanInfo Editor.
  • Javadoc Code Completion. Editing of javadoc comments is more convenient with code completion.
  • JavaScript support.
  • Spring Framework Support.
  • On Demand Binding Attribute for Visual Web JSF projects.
  • Axis2 support for web services.
  • SOAP UI integration for Web Service testing and monitoring.
  • The integration of the December 2007 through February 2008 bug fixes listed on the following page: http://wiki.netbeans.org/wiki/view/NetBeans6.0PatchesInfo.

For information about the main development features in NetBeans IDE, see the NetBeans IDE 6.1 Information page.

6.1 Beta Release Feature Highlights

6.1 Beta Release Feature Highlights :

  • JavaScript Support
    • Semantic Highlighting
    • Code Completion and Type Analysis
    • Quick Fixes and Semantic Checks
    • Refactoring
JavaScript Code Completion, Click to enlarge

  • Performance Enhancements
    • Up to 40% faster startup
    • Smarter parsing so that code completion is faster
    • Less memory consumption
Progress Bar

  • Spring Framework Support
    • Bundled Spring Framework 2.5 library
    • Wizards for XML configuration files and Spring Web MVC controllers
    • Code completion of bean names and Java classes and properties
    • Spring Web MVC framework support in web project
Spring Code Completion, Click to enlarge

  • New MySQL Support in Database Explorer
    • Register MySQL servers
    • View, create, and delete databases
    • Easy launch of the administration tool for MySQL
MySQL  Node, Click to enlarge

  • Java Beans Support
    • Bean Patterns in Navigator
    • Generate Bean Property
    • BeanInfo Editor
Java Bean Navigator

  • JSF CRUD Generator
    • Quickly create a database application
    • Supports one-to-one, one-to-many, and many-to-many entity relationships
JSF , Click to enlarge

  • Ruby/JRuby Support
    • Editor enhancements, including new hints and fixes
    • Support for JRuby fast debugging
    • Platform Manager
    • Server and database integration improvements in Rails projects
JSF , Click to enlarge

  • Javadoc Code Completion
    • Supports standard tags: @param, etc.
    • Code completion for parameters, exceptions, etc.
Javadoc, Click to enlarge

  • Sharing Projects (AKA Sharable Libraries)
    • More easily share projects with other members of your team through version control systems
    • Specify libraries using relative library path for default Java, Web, and all Java EE project types
    • Declare project dependencies with relative library paths
    • Enable unattended builds for your projects
Shared Libraries, Click to enlarge

  • New Update Center Modules
    • ClearCase Support
    • AXIS Support
    • SOAP UI Support

NetBeans IDE 6.1 Beta Release Overview

NetBeans IDE 6.1 Beta Release Overview :

The NetBeans IDE is a modular, standards-based, integrated development environment (IDE) written in the Java programming language. The NetBeans project consists of an open source IDE and an application platform, which can be used as a generic framework to build any kind of application.

The NetBeans IDE 6.1 release provides several features and enhancements, such as rich JavaScript editing features, support for using the Spring web framework, tighter MySQL integration, and better mechanisms for projects to share use of libraries. The acclaimed support for Ruby/JRuby has been enhanced with new editor quick fixes, a Ruby platform manager, fast debug support for JRuby, and many other new features and fixes.

By popular demand, the bean pattern and JSF CRUD generation features that were missing in the 6.0 release have returned. In addition, early versions of new modules, such as ClearCase support, are available as plugins. This release also provides improved performance, especially faster startup (up to 40%), lower memory consumption and improved responsiveness while working with large projects. See below for a list of features in this release.