NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based...

37
NetBeans 6.0 A Fresh Look into Java Development Petr Suchomel Architect, NetBeans Mobility Sun Microsystems

Transcript of NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based...

Page 1: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

NetBeans 6.0A Fresh Look into Java Development

Petr SuchomelArchitect, NetBeans Mobility

Sun Microsystems

Page 2: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Agenda

• The NetBeans – IDE, Platform, Community• What's new in NetBeans 6.0• Quick look over NetBeans IDE and platfrom• Discovering NetBeans Mobility Edition• Q/A

Page 3: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans overview

• What is NetBeans ?> It is IDE> It is Platform> It is a Community

• Mainly Java IDE, but not only> 1st class scripting support for Ruby, JRuby, Rails> C/C++ support

• Platform for you own applications• Vibrant community• Supported

Page 4: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Roadmap

Page 5: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

What's new in NetBeans 6.0

• Not an update, it is major refresh for NetBeans • Improved editor & coding productivity> Smart code completion> Syntax highlighting> Refactoring

• Version system> CVS, Subversion, Mercurial> Local history

• Matisse GUI designer> Swing application framework> Beans binding

Page 6: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

What's new in NetBeans 6.0

• Build in Profiler• Scripting – Ruby, JRuby, PHP, JavaScript• New distribution packaging• More (see http://wiki.netbeans.org)

Page 7: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans 6.0

Demo

Page 8: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Java EE support

• Java EE developer support includes> Web Applications> Java EE applications> Web Services, REST support> Visual Design using JSF components

• Bundled servers> Tomcat> GlassFish V2

• Derby (Java DB) database included> MySQL, PostgreSQL drivers bundled

Page 9: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Java EE support

Demo

Page 10: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Profiler

• Additional plugin for NetBeans since 4.1, standard part of NetBeans since 6.0• Originally based on JFluid technology• Fully integrated profiling/analysis tool• Thread, memory views, heap walker• Only part of application can be instrumented – less

profiling overhead• Dynamic instrumentation• Dynamic attach

Page 11: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Profiler

Demo

Page 12: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Platform – Visual VM

• A graphical tool for monitoring, performance analysis to troubleshooting• Completely based on NetBeans Platform• Lightweight, download has only ~ 7 MB• Extensible – additional plugins can be used• Use for analyzing performance issues on local and

remote running VM's• Dynamic attach

Page 13: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Platform – Visual VM

Demo

Page 14: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

NetBeans Mobility Edition

• Until NetBeans 6.0 add on – Mobility Pack• Starting NetBeans 6.0 included in NetBeans

Mobility Edition or Full Edition with support for both CLDC and CDC devices• Includes Sun Java Wireless Toolkit• Rich set of examples• Over 1.000.000 cumulative downloads • Open source project - http://mobility.netbeans.org> Platform for Java ME tools

Page 15: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Main Highlights

• Ant based build system> With specific extensions for Java ME/CLDC and CDC> Project can be built outside IDE> Extensible – user defined targets

• Bundled Sun Java Wireless Toolkit 2.5.2• Support for 3-rd party emulators> Automatic detection> Nokia, Sony Ericsson, Motorola, Siemens and others> Special / custom platforms can be added as well

• Advanced testing support

Page 16: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Visual Designer for MIDP

• New, powerful Visual Designer for Java ME / MIDP• Flow editor> Design your application flow using a visual tool

• Screen editor> Visually edit the individual screens of the application

• Source editor> Add/Edit application business logic

• Custom components> Splash screen, Wait screen, Table item, SVG support

• Generates compact code

Page 17: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Drag & Drop w/ Visual Mobile Designer

Page 18: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Visual Designer in Action

Demo

Page 19: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Application Porting Features

• Helps with porting of applications on real devices> Devices exist in many variations – screen size,

multimedia with different codecs support• Application configuration> Every configuration represents one set of files> Settings can be modified for each configuration

• Commenting preprocessor> Comments out non-active blocks> Integrated with editor, highlighting and code completion

• Build selected or all configurations in one step

Page 20: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Application Porting

Page 21: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Application Porting

Demo

Page 22: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Advanced Features

• Client-Server application development> Wireless Connection Bridge (web svcs, EJBs, etc.)> Web Services Client Generator (JSR 172)

• MIDP localization support• OTA testing> Simulating real mobile devices

• Distributed with ProGuard for code obfuscation and optimization• Deployment support• Application signing

Page 23: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Client-Server Connection Solutions

Web Service

Wireless Client to Web Application

Middleware

SOAP

SOAP

Binary protocol

Java ME Web Services enabled phone (JSR 172)

Phone without Java ME Web Services

Page 24: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

SVG-T in NetBeans Mobility Edition

• Support for SVG-T files and development> Scalable Vector Graphics Tiny 1.1 (JSR-226)

• SVG-T composer, viewer and navigator> Explore SVG-T content> Run animations> SVG-T composer and editor

• Extended Visual Designer> Use new SVG components to create rich application UI> SVG Menu, SVG Splash Screen, SVG Wait Screen,

SVG Image, SVG Animator

Page 25: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

SVG-T & Web Services Together

Demo

Page 26: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Game Designer Highlights

• Visual Drag'n'Drop application designs> Uses MIDP 2.0 Game API's

• Build individual Tiled Layers and Sprites> Import prepared graphics

• Manipulate overall Scenes layout> By moving individual layers

• Support for Sprite timing• Simplifies basic blocks building for game developers

Page 27: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Game Designer

Page 28: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Game Designer

Demo

Page 29: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Advanced Testing

• Testing is important, but complex issue in Java ME• Many devices, careers networks and bradings• Initial testing can be done using emulator SDK's

and JMUnit • Complex testing requires testing on real devices

and networks> High cost to maintain devices for development> Requires additional support infrastructure> Can be out of scope for smaller development teams

Page 30: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Testing using DeviceAnywhere

• Unique service allows testing on remote devices• No need to buy devices for in house testing• Access to pre-release handsets• Developer is testing real device in real network• Advantage for developer who are building apps for

third country careers• Also available as Sony Ericsson Lab• Build in support for deployment in NetBeans

Mobility Edition

Page 31: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Testing using DeviceAnywhere

Demo

Page 32: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Support for CDC Configuration

• Starting NetBeans 6.0, CLDC and CDC support is included within one Mobility Edition• Solution for Java ME CDC application development• Matisse Visual Designer available for GUI

development (Advanced GUI - JSR 209 Swing subset, Personal Profile)• Supports Sony Ericsson CDC Platform 1, Nokia

S80, SavaJe devices, RICOH SDK/J printers, NSIcom CrEme VM support (Windows CE and Windows Mobile Platforms)

Page 33: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Using Matisse on CDC platform

Page 34: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Using CDC Platforms

Demo

Page 35: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Summary

• NetBeans Mobility Edition is a complete solution for mobile application development and deployment• Supports broad set of emulators and devices• Features for both power users and beginners• Visual manipulation for both CLDC/MIDP UI and

Game API's• Advanced testing features• Questions, Requirements, Ideas? - send comments

to [email protected]

Page 36: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

Stockholm, Sweden

Questions & Answers

Page 37: NetBeans 6.0 A Fresh Look into Java Development · Stockholm, Sweden Main Highlights • Ant based build system > With specific extensions for Java ME/CLDC and CDC > Project can be

NetBeans 6.0A Fresh Look into Java Development

Petr SuchomelArchitect, NetBeans Mobility

Sun Microsystems