| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles Books | Tips Tutorials |
- An Introduction to JRockit Mission Control by Marcus Hirt - [Clicks: 21]
BEA JRockit Mission Control is a set of powerful tools provided with the BEA JRockit 5.0 R26 JDK. These tools deliver advanced, unobtrusive JVM monitoring and management, suitable for use both in development and production environments. This article gives an introduction to JRockit Mission Control, describing the main components in the suite, how this suite's components differ from competing technologies, and how you can use them to manage your JRockit JVM deployments.
http://dev2dev.bea.com/pub/a/2005/12/jrockit-mission-control.html - Dec, 2005 - JRockit 5.0 - The JVM at Your Fingertips by Marcus Hirt - [Clicks: 19]
The BEA JRockit Java virtual machine (JVM) offers more than just a performance advantage. This article discusses some manageability and usability features available in the 5.0 R26 version of JRockit. In particular, it provides a brief look at the JRockit Mission Control suite of analysis tools, the experimental headless mode for the JRockit Management Console, interacting with the JVM using the Ctrl-Break Handler, JRCMD, Heap View, and code coverage.
http://dev2dev.bea.com/pub/a/2005/12/jrockit-5.html - Dec, 2005 - Experiences with the New Java 5 Language Features by Jess Garms, Tim Hanson - [Clicks: 72]
Java 5.0 is here, and many of you will be starting to use some of the new features added to this release of the JDK. Everything from the enhanced for loop to more complex features such as generics will soon start appearing in code that you write. We just completed a large Java 5.0-based assignment, and this article looks at our experiences with many of these features. It's not an introduction but a somewhat deeper examination of the features and how they'll affect you, along with a few tips on how to effectively use these features in your own projects.
http://dev2dev.bea.com/pub/a/2005/09/java_5_features.html - Dec, 2005 - Java theory and practice: Plugging memory leaks with weak references by Brian Goetz - [Clicks: 34]
While programs in the Java language are theoretically immune from "memory leaks," there are situations in which objects are not garbage collected even though they are no longer part of the program's logical state. This month, sanitation engineer Brian Goetz explores a common cause of unintentional object retention and shows how to plug the leak with weak references.
http://www-128.ibm.com/developerworks/java/library/j-jtp11225/index.html - Nov, 2005 - XML Validation and XPath Evaluation in J2SE 5.0 by Robert Eckstein - [Clicks: 73]
Some of the exciting new features of the Java 2 Platform, Standard Edition (J2SE) 5.0 release, code-named Tiger, are the added XML validation package at javax.xml.validation and the XPath libraries at javax.xml.xpath. Before the Tiger release, the Java API for XML Processing (JAXP) SAXParser or DocumentBuilder classes were the primary instruments of Java technology XML validation. The new Validation API, however, decouples the validation of an XML document from the parsing of the document. Among other things, this allows Java technology to support multiple schema languages. Let's take a closer look at XML validation first.
[Includes source code]
http://java.sun.com/developer/technicalArticles/xml/validationxpath/ - Sep, 2005 - J2SE 5.0 Adoption - [Clicks: 67]
Thinking of migrating to Java 2 Platform, Standard Edition (J2SE) 5.0 but need just a little more information? We have aggregated J2SE 5.0 articles, tips, features, white papers, and more to help make the process that much easier.
http://java.sun.com/reference/tigeradoption/ - Aug, 2005 - Reasons to Migrate to J2SE 5.0 (Tiger) by John O'Conner - [Clicks: 63]
The J2SE 1.4 platform was great, but J2SE 5.0 is even better. Although you may not need to migrate your product to this updated platform, you may want to move anyway. You can find more details about every new enhancement by reading the J2SE 5.0 release notes. Summarizing those notes, here are just a few areas that provide convincing reasons to start your migration now: - language features; - class libraries; - tool support; - desktop enhancements; - quality.
http://java.sun.com/developer/technicalArticles/releases/j2se50/MigrateToTiger.html - Aug, 2005 - The Collections Framework by John Zukowski - [Clicks: 48]
You're probably quite familiar with the new Java 5 language support for generics, the concurrent utility libraries, and their effect on the Collections Framework, but those aren't the only changes to the Collections Framework libraries in Tiger. This month, John Zukowski covers several other enhancements, including the new collection types and the additional features of existing classes and interfaces.
[Includes sample code]
http://www-128.ibm.com/developerworks/java/library/j-tiger07195/index.html - Jul, 2005 - Classworking toolkit: Use J2SE 5.0 features on older JVMs by Dennis M. Sosnoski - [Clicks: 36]
Many of the J2SE 5.0 language features would be just as useful for older JVMs, but the compiler that implements these features generates code that requires JDK 5.0 or later. Fortunately, there's an open source project that bridges the gap between J2SE 5.0 and older JVMs -- Retroweaver. Retroweaver converts your class files to eliminate the JDK 5.0 dependency while adding its own library of support functions to make most 5.0 features fully usable in older JVMs. If you like J2SE 5.0 language features but can't make the jump to using JDK 5.0 at run time, Retroweaver may be just what you need.
[Includes source code]
http://www-128.ibm.com/developerworks/java/library/j-cwt07065/index.html - Jul, 2005 - Living on the Edge: Migration to Java 5 at walmart.com by Eugene Ciurana - [Clicks: 44]
How do you upgrade one of the busiest web applications of the whole Internet to Java 1.5? This is a challenge under the best conditions, considering that the application must handle up to 7 million sessions and 106 million page views per day. This article is a case study of the Java 1.5 upgrade for the application and subsystems that make up the walmart.com web site.
http://www.theserverside.com/articles/article.tss?l=MigratingtoJava5 - Jun, 2005 - Taming Tiger: AWT grows up by John Zukowski - [Clicks: 30]
The Abstract Window Toolkit is the basis of the Swing component set. Follow along with John Zukowski as he discusses the aspects of AWT that changed with the 5.0 release of the Java 2 platform. These include PointerInfo and MouseInfo for recovering pointer position and z-order management for screens with overlaid components.
http://www-128.ibm.com/developerworks/java/library/j-tiger05245/index.html - May, 2005 - Five Favorite Features from 5.0 by David Flanagan - [Clicks: 69]
David Flanagan reviews five of his favorite new API features: Callable and Future interfaces, new APIs for varargs and autoboxing, and others. Plus, he offers a bonus sixth feature, a new language syntax supported by Java 5.0 but known to very few.
http://www.onjava.com/pub/a/onjava/2005/04/20/javaIAN5.html - Apr, 2005 - Performance in J2SE 5.0 by Osvaldo Pinali Doederlein - [Clicks: 49]
If you're a Java developer like me you ask two questions about every major J2SE release. What's new, and what's faster (or slower). Tiger includes a large number of well-publicized, high-profile features like generics, annotations, or the full new API for concurrent programming.
http://www.sys-con.com/story/?storyid=49095&DE=1 - Apr, 2005 - J2SE 5.0 Performance White Paper - [Clicks: 42]
While J2SE 5.0 has added many new features Sun Microsystems has also been working to continue to improve scalability and performance, with a new emphasis on startup time and memory footprint. This guide gives an overview of the performance and scalability improvements made in the J2SE 5.0 release along with various benchmarks to demonstrate the impact of these improvements.
http://java.sun.com/performance/reference/whitepapers/5.0_performance.html - Mar, 2005 - Taming Tiger: Virtual machine updates by John Zukowski - [Clicks: 22]
In this installment of Taming Tiger, John Zukowski shows you how the latest Java virtual machine improves startup time, reduces memory requirements, and improves performance. With Tiger, you get a shared data archive, new thread scheduling algorithms, and a fatal error handler for those times when things don't go well.
http://www-128.ibm.com/developerworks/java/library/j-tiger03175.html - Mar, 2005 - Taming Tiger: Get pane relief with Tiger by John Zukowski - [Clicks: 17]
How many times have you written code with frame.getContentPane().add(), or forgotten to get the content pane before calling add() and ended up with an Error thrown at runtime? As consultant John Zukowski shows you in this Taming Tiger tip, these problems are a thing of the past.
http://www-106.ibm.com/developerworks/java/library/j-tiger02155/ - Feb, 2005 - Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond by Glen Pepicelli - [Clicks: 13]
Glen Pepicelli introduces bitsets--primitives whose bitwise representations are actually data models--and how they can be manipulated.
[Includes sample code]
http://www.onjava.com/pub/a/onjava/2005/02/02/bitsets.html - Feb, 2005 - Advanced Synth by Michael Abernethy - [Clicks: 48]
Take an in-depth look at the Synth look and feel, the newest addition to Swing introduced in Java 5.0. Synth lets developers rapidly create and deploy custom looks for an application by introducing the concept of a "skin" to Java UI programming. Software Engineer Michael Abernethy takes you through Synth concepts step-by-step to build an application with a Synth look from scratch. After reading this article, you should be able to create professional-looking UIs in no time.
[Includes source code]
http://www-106.ibm.com/developerworks/java/library/j-synth/ - Feb, 2005 - Parsing an XML Document with XPath by Deepak Vohra - [Clicks: 116]
Deepak Vohra looks at the XPath support provided by both JDOM and the J2SE 5.0 java.xml.xpath package.
[Includes example code]
http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html - Jan, 2005 - Five Reasons to Move to the J2SE 5 Platform by Calvin Austin - [Clicks: 47]
This article provides five important reasons to move to the Java 2 Platform, Standard Edition (J2SE platform) 5.0. Each reason is supported by data and references to prove that the 5.0 release will reduce development and runtime costs.
http://java.sun.com/developer/technicalArticles/J2SE/5reasons.html - Jan, 2005
- Learning Java, 3rd Edition
by Patrick Niemeyer, Jonathan Knudsen - [Clicks: 24]
With more changes than any previous version, Java 5.0 makes it easier to develop safe, powerful code. But it isn't any easier to learn. That means the bestselling hands-on tutorial Learning Java takes on greater significance, delivering a no-nonsense approach to Java 5.0 features, such as "generics," and looks into the popular Eclipse IDE. The accompanying CD includes the Java 5.0 SDK for Windows, Linux and Solaris.
O'Reilly Media, Inc., Paperback - May, 2005 - Ivor Horton's Beginning Java 2, SDK 5 Edition
by Ivor Horton - [Clicks: 59]
This book is a comprehensive introduction to the Java programming language, updated thoroughly (more than 35% new and updated) for the latest SDK 1.5 release. This book shows readers how to build real-world Java applications using the Java SDK. No previous programming experience is required. The author uses numerous step-by-step programming examples to guide readers through the ins and outs of Java development. In addition to fully covering new features of SDK 1.5, such as generic types, the author has also added new chapters on Java database programming with JDBC and Java programming with XML.
Wrox, Paperback - 2005 - Java Network Programming, 3rd Edition
by Elliotte Rusty Harold - [Clicks: 19]
Thoroughly revised to cover all the 100+ significant updates to Java Developers Kit (JDK) 1.5, Java Network Programming is a complete introduction to developing network programs (both applets and applications) using Java, covering everything from networking fundamentals to remote method invocation (RMI). It includes chapters on TCP and UDP sockets, multicasting protocol and content handlers, servlets, and the new I/O API. This is the essential resource for any serious Java developer.
O'Reilly Media, Inc., Paperback - 2005 - Professional Java, JDK 5 Edition
by W. Clay Richardson, Donald Avondolio, Joe Vitale, Scot Schrager, Mark W. Mitchell, Jeff Scanlon - [Clicks: 52]
Professional Java builds upon Ivor Horton's Beginning Java to provide the reader with an understanding of how professionals use Java to develop software solutions. Pro Java starts with an overview of best methods and tools for developing Java applications. It then examines the the more sophisticated and nuanced parts of the Java JDK. The final and most extensive part of the book shows how to implement these ideas to build real-world applications, using both Java APIs as well as related Java open source tools. In short, this book provides a comprehensive treatment of the professional Java development process, without losing focus in exhaustive coverage of isolated features and APIs.
Wrox, Paperback - 2005
- Communicating With Native Applications Using JDIC by Daniel H. Steinberg - [Clicks: 21]
JDesktop Integration Components (JDIC) (https://jdic.dev.java.net) enable Java applications to integrate into the native desktop. This allows these applications to take advantage of functionality provided by operating system-specific programs such as web browsers or email tools. JDIC is currently supported in the Solaris 8 (or later) Operating System, the Sun Java Desktop System (JDS) Release 1 or later, various Windows operating systems (ME, NT, XP, 2003, and 2000), SuSE Linux 7.1 or later, and RedHat Linux 8 or later. Support for Mac OS X is being added for future releases.
http://java.sun.com/developer/JDCTechTips/2005/tt0505.html#1 - May, 2005 - The Enhanced For Loop by Daniel H. Steinberg - [Clicks: 19]
Introduced as a new language feature in J2SE 5.0, the enhanced for loop allows you to iterate through a collection without having to create an Iterator or without having to calculate beginning and end conditions for a counter variable. The enhanced for loop is the easiest of the new features to immediately incorporate in your code. In this tip you will see how the enhanced for loop replaces more traditional ways of sequentially accessing elements in a collection.
http://java.sun.com/developer/JDCTechTips/2005/tt0505.html#2 - May, 2005 - Atomic Variables by John Zukowski - [Clicks: 27]
Three previous Tech Tips covered aspects of the new concurrency utility support in JDK 5.0. The February 16, 2005 tip, Getting to Know Synchronizers, discussed synchronizers. The November 16, 2004 Tech Tip, Pooling Threads to Execute Short Tasks, investigated thread pools. And the October 19, 2004 Tech Tip, Queues and Delayed Processing, explored the concurrent collections, including the blocking queue. The following tip examines another facet of the new concurrency support in JDK 5.0: atomic variables.
http://java.sun.com/developer/JDCTechTips/2005/tt0419.html#2 - Apr, 2005 - Thread Handling in Swing by John Zukowski - [Clicks: 29]
To increase efficiency and decrease complexity, all Swing components are designed not to be thread-safe. This simply means that all access to Swing components needs to be done from a single thread. That thread is called the event-dispatch thread, and it isn't one you create yourself. If you are unsure that your executing code is in the event-dispatch thread, you can query the EventQueue class through its static isDispatchThread() method. Alternatively, you can query the SwingUtilities class through its static isEventDispatchThread() method. The isEventDispatchThread() method acts as a proxy to the isDispatchThread() method.
http://java.sun.com/developer/JDCTechTips/2005/tt0419.html#1 - Apr, 2005 - From StringTokenizer to Scanner by Daniel H. Steinberg - [Clicks: 65]
The December 1, 2004 tip Scanning Text With java.util.Scanner, described how to use the new J2SE 5.0 Scanner class to read and parse text-based files. One question that has been asked is how does the Scanner class differ from the java.util.StringTokenizer class? The following tip addresses that question. It shows how to use the StringTokenizer class to perform some of the actions covered in the Scanner tip. The following tip also demonstrates that rather than using StringTokenizer, it's better to use the split() function included in the String class, or move to other regular expression-based solutions such as Scanner.
http://java.sun.com/developer/JDCTechTips/2005/tt0308.html#2 - Mar, 2005 - Printing JTables by Daniel H. Steinberg - [Clicks: 51]
Before J2SE 5.0, printing a simple JTable was challenging. J2SE 5.0 adds print() methods to the API for printing tables, adding headers and footers to the output, and specifying whether or not you want to fit the table on the printed page. This tip shows you how to use these new facilities to print a simple JTable. It also shows you how to customize the table by adding shading to alternate rows, and print the table with and without the shading.
http://java.sun.com/developer/JDCTechTips/2005/tt0308.html#1 - Mar, 2005 - Getting to Know Synchronizers by John Zukowski - [Clicks: 23]
Support for synchronization has been part of the Java programming language since the initial release of the Java platform. This support is designed to prevent simultaneous access to critical code blocks and shared variables. Synchronization gives you the choice of adding the synchronized keyword to a method or wrapping a code section in a synchronized block. J2SE 5.0 adds several mechanisms for coordinating between different threads in an application. This added support is provided by the new java.util.concurrent package. The package includes classes that offer semaphores, barriers, latches, and exchangers -- this tip looks at each of these in more detail.
http://java.sun.com/developer/JDCTechTips/2005/tt0216.html#1 - Feb, 2005 - HotSpot Garbage Collection Configuration Options by John Zukowski - [Clicks: 9]
The April 20, 2004 Tech Tip Garbage Collection and You, explored various non-standard options for the java command line tool (the Java application launcher) that control garbage collection in the runtime environment. In J2SE 5.0, several of these options have changed and more controls have been added. This tip briefly covers some of these changes and additions, and points to other places for further information. If you're unfamiliar with HotSpot options for garbage collection, you might start by reading the "Garbage Collection and You" Tech Tip first.
http://java.sun.com/developer/JDCTechTips/2005/tt0216.html#2 - Feb, 2005 - Introduction to JOGL by Daniel H. Steinberg - [Clicks: 28]
As it's name implies, JOGL, the Java APIs for OpenGL, is a Java programming language binding for the OpenGL 3D graphics API. JOGL is designed to provide hardware-supported 3D graphics to applications written in Java technology. This tip will show you how to use JOGL to include basic two-dimensional and three-dimensional graphics in an application. JOGL is available under the Berkeley Software Distribution (BSD) license on java.net. Because JOGL is a light Java wrapper around the standard OpenGL API, the examples and text in this tip, for the most part, don't cover basic information on OpenGL.
http://java.sun.com/developer/JDCTechTips/2005/tt0208.html#1 - Feb, 2005 - Let There Be Z-Order by John Zukowski - [Clicks: 8]
Before the introduction of the Swing component set, the primary means of user-interface programming in the Java Platform was provided by the Abstract Window Toolkit (AWT). The Swing component set is built on top of AWT, and the AWT layout managers and events are often used when using Swing. J2SE 5.0 adds a number of enhancements and makes a number of bug fixes to AWT. One of these enhancements is added z-order support.
http://java.sun.com/developer/JDCTechTips/2005/tt0118.html#1 - Jan, 2005 - Covariant Parameter Types by Daniel H. Steinberg - [Clicks: 14]
The December 1, 2004 Tech Tip Covariant Return Types presented an example of using this new J2SE 5.0 facility. This facility allows you to create methods in a subclass that return an object whose type is a subtype of that returned by the method it overrides. In the following tip you will see the difficulties involved in extending this capability to method parameters.
http://java.sun.com/developer/JDCTechTips/2005/tt0104.html#2 - Jan, 2005
- Intermediate Swing by Michael Abernethy - [Clicks: 39]
This tutorial builds on Introduction to Swing, which introduced the basics of Swing programming and the flight reservation system application. In this hands-on tutorial, Swing programmer Michael Abernethy walks you through more advanced Swing techniques like writing thread-safe code, building custom components, and customizing the look and feel to create a more polished and powerful UI.
[Formats: HTML, PDF, Zip]
http://www-128.ibm.com/developerworks/edu/j-dw-java-medswing-i.html - Jun, 2005 - Introduction to Swing by Michael Abernethy - [Clicks: 35]
This hands-on introduction to Swing, the first in a two-part series on Swing programming, walks through the essential components in the Swing library. Java developer and Swing enthusiast Michael Abernethy guides you through the basic building blocks and then assists as you build basic but functional Swing application. Along the way you'll learn how to use models to ease the process of dealing with the data.
[Formats: HTML, PDF, Zip]
http://www-128.ibm.com/developerworks/edu/j-dw-java-intswing-i.html - Jun, 2005 - Java Platform Migration Guide - [Clicks: 23]
This guide helps developers migrate Java applets, standalone applications, Java Web Start applications and development tools from version 1.3 and 1.4 of the Java platform to version 5.0.
http://java.sun.com/j2se/JM_White_Paper_R6A.pdf - Feb, 2005 - (PDF - 150 Kb)