| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ] |
| Articles Tutorials |
- Demystifying class loading problems, Part 4: Deadlocks and constraints by Simon Burns, Lakshmi Shankar - [Clicks: 22]
This four-part article series examines Java class loading, in an effort to help application developers understand and debug problems they may encounter. In this final installment, authors Lakshmi Shankar and Simon Burns from the IBM Hursley Labs build on the first three articles and look at two of the most interesting and complex problems you will encounter in this arena: deadlocks and constraints.
http://www-128.ibm.com/developerworks/java/library/j-dclp4/index.html - Dec, 2005 - Validate localized data with regular expressions by Doug Tidwell - [Clicks: 15]
Data validation is a common chore in programming any user interface. The Java language's regular-expression support can make data validation easier. You can define a regular expression that describes valid data and then let the Java runtime see if it matches. But certain types of data have different formats in different locales. The ResourceBundle class lets you work with locale-specific data in an elegant way. This article shows how to combine the two techniques to solve a common data-entry problem.
[Includes sample code]
http://www-128.ibm.com/developerworks/java/library/j-validating/index.html - Dec, 2005 - Demystifying class loading problems, Part 3: Tackling more unusual class loading problems by Lakshmi Shankar, Simon Burns - [Clicks: 23]
This four-part article series examines Java class loading, in an effort to help application developers understand and debug problems they may encounter. In Part 3, authors Lakshmi Shankar and Simon Burns from the IBM Hursley Labs build on the first two parts of the series and detail different kinds of class loading problems, including those related to classpaths, class visibility, and garbage collection.
http://www-128.ibm.com/developerworks/java/library/j-dclp3/index.html - Dec, 2005 - Demystifying class loading problems, Part 2: Basic class loading exceptions by Simon Burns, Lakshmi Shankar - [Clicks: 16]
This four-part article series examines Java class loading to help application developers understand and debug problems they may encounter. In Part 2, authors Lakshmi Shankar and Simon Burns from the IBM Hursley Labs tackle some exceptions that, while fairly simple, often puzzle novice and experienced Java developers alike.
http://www-128.ibm.com/developerworks/java/library/j-dclp2.html - Dec, 2005 - Demystifying class loading problems, Part 1: An introduction to class loading and debugging tools by Lakshmi Shankar, Simon Burns - [Clicks: 21]
The class loading component is fundamental to the Java virtual machine. Though developers generally have a good grasp of the basics of class loading, when a problem occurs, they may have a hard time diagnosing and determining a solution. In this four-part article series, Lakshmi Shankar and Simon Burns discuss the various class loading problems that you may encounter in your Java development and illustrate why they occur and how to resolve them. The insights they provide should help you understand and resolve common Java exceptions, such as NoClassDefFoundError and ClassNotFoundException, in addition to more challenging problems, such as class loader constraint violations and deadlocks. In this first article, they describe in detail how Java class loading works and discuss the tools available in the JVM to help you diagnose class loading problems.
http://www-128.ibm.com/developerworks/java/library/j-dclp1/index.html - Nov, 2005 - Avoid the Lesser Known Pitfalls of Localizing Java Applications by Denis Gurchenkov - [Clicks: 11]
Preparing a localized version of a Java desktop application is supposed to be an easy and well-documented task. Learn about those small problems involved that have typically fallen under the radar.
http://javaboutique.internet.com/tutorials/leskov/ - Sep, 2005 - Marrying Serializable with 1.4+ long term bean persistence by Mikael Grev - [Clicks: 11]
This article describes how to combine the two current out-of-the-JDK1.4+ persistence frameworks in a simple way. JavaBean writers and developers who wonder about standard persistence in Javamight be interested in this. There will be very little on how these persistence technologies actually work and nothing on how other frameworks such as Hibernate works. It’s more on how to, and why you might consider, marrying the two.
http://www.javalobby.org/articles/serialization/ - Sep, 2005 - Internationalization: Understanding Locale in the Java Platform by John O'Conner - [Clicks: 21]
To be effective, an application should respect the user's language and geographic region. Learn how to use locale-sensitive objects to customize your Java technology application with the use of language, country, and variant codes.
http://java.sun.com/developer/technicalArticles/J2SE/locale/ - Sep, 2005 - Concentrate on the Java Exceptions that Matter to Your Application by Tareq Shaheen - [Clicks: 12]
Using custom exceptions that separate application from system exceptions enables you to concentrate on handling only the exceptions that are meaningful to your application.
http://www.devx.com/Java/Article/29253 - Sep, 2005 - Java theory and practice: Decorating with dynamic proxies by Brian Goetz - [Clicks: 32]
The dynamic proxy facility, part of the java.lang.reflect package and added to the JDK in version 1.3, allows programs to create proxy objects, which can implement one or more known interfaces and dispatch calls to interface methods programmatically using reflection instead of using the built-in virtual method dispatch. This process allows implementations to "intercept" method calls and reroute them or add functionality dynamically. This month, Brian Goetz explores several applications for dynamic proxies.
http://www-128.ibm.com/developerworks/java/library/j-jtp08305.html - Aug, 2005 - Internationalization, Part 2 by David Flanagan - [Clicks: 19]
Editor's note: Having your Java apps run correctly both down the street and across the globe presents some hefty challenges. Part one of this two-part excerpt from Java Examples in a Nutshell, 3rd Edition covered the first two steps to internationalization in Java: using Unicode character encoding and handling local customs. This week deals with the third step in the process: localizing user-visible messages.
[O'Reilly Book Excerpts: Java Examples in a Nutshell, 3rd Edition]
http://www.onjava.com/pub/a/onjava/excerpt/javaexIAN3_chap8/index1.html - Aug, 2005 - Internationalization, Part 1 by David Flanagan - [Clicks: 28]
Editor's note: Writing software that is truly multilingual is not an easy task. In this excerpt from Chapter 8 of Java Examples in a Nutshell, 3rd Edition, author David Flanagan offers real-world programming examples covering the three steps to internationalization in Java. This week, he covers how to use Unicode character encoding and how to handle local customs. Next week's excerpt will cover the third step: localizing user-visible messages.
[O'Reilly Book Excerpts: Java Examples in a Nutshell, 3rd Edition]
http://www.onjava.com/pub/a/onjava/excerpt/javaexIAN3_chap8/index.html - Aug, 2005 - Internationalization road hazards by Taylor Cowan - [Clicks: 21]
Support in the Java language for multilingual and multicountry environments is strong, but it's not foolproof. If you're not careful, mistaken assumptions in three key areas can make their way into your code and cause it to be U.S.-centric. This article identifies these internationalization gotchas and gives you some techniques to help your applications become more usable across the globe.
http://www-128.ibm.com/developerworks/library/j-i18n.html - Aug, 2005 - Java Pro Programming: Printing by Brett Spell - [Clicks: 22]
In this article, an excerpt from Pro Java Programming (Apress, June 2005), Brett Spell explains step-by-step how to locate print services, create a print job, create an implementation of the Doc interface that describes the data you want to print, and initiate printing.
http://www.javaworld.com/javaworld/jw-07-2005/jw-0725-print.html - Jul, 2005 - Java Tech: The Sweet Song of the BlueJ, Part 1 by Jeff Friesen - [Clicks: 13]
I recently discovered a Java product called BlueJ. This product, symbolized by the image of a blue jay, is used to teach object orientation to students. In contrast to the harsh-sounding blue jay (which happens to be a member of the crow family), BlueJ is anything but harsh. This simple yet powerful product presents a short learning curve, which is ideal for students. Welcome to the first installment in a two-part series that explores BlueJ. This article introduces the product, reveals its reason for being (Java instructors, take note), shows how to install BlueJ, and takes a tour of BlueJ's GUI. The article climaxes with an example that illustrates several BlueJ features.
[This series is based on BlueJ version 2.0.4 and J2SE 5.0 running on the Windows 98 SE platform.]
http://today.java.net/pub/a/today/2005/07/21/bluej.html - Jul, 2005 - Memory Leaks, Be Gone by Staffan Larsen - [Clicks: 64]
Although the Java Virtual Machine (JVM) and its garbage collector (GC) manage most memory chores, it is possible to have memory leaks in Java software programs. Indeed, this is quite a common problem in large projects. The first step to avoiding memory leaks is to understand how they occur. This article presents some common pitfalls and best practices for writing non-leaking Java code. Once you have a memory leak, it can be very difficult to pinpoint the code that creates the leak. This article also presents a new tool for efficiently diagnosing the leak and pinpointing the root cause. The tool has a very low overhead, allowing you to find memory leaks in production-type systems.
http://dev2dev.bea.com/pub/a/2005/06/memory_leaks.html - Jun, 2005 - Plug into Java with Java Plug-in, Part 2 by Jeff Friesen - [Clicks: 25]
This article is the sequel to Jeff Friesen's previous article on Java Plug-in, "Plug into Java with Java Plug-in" (JavaWorld, June 1999). It focuses on one of the more recent Java Plug-ins in the context of the Firefox Web browser. In this article, you learn how to access Java Plug-in from Firefox. You also learn about the Java Plug-in Document Object Model (DOM), applet state persistence, and cookies. In addition, you study applets, run from Firefox, that reinforce those topics. But that's only the beginning. Have you ever wanted to explore how Firefox communicates with Java Plug-in (behind the scenes)?
[Includes source code]
http://www.javaworld.com/javaworld/jw-06-2005/jw-0627-plugin.html - Jun, 2005 - Using Assertions in Java Technology by Qusay H. Mahmoud - [Clicks: 49]
The new assertion facility in J2SE 1.4 (and later versions) provides a unified support for assertions in Java technology as well as a convenient way for developers both to turn assertions on and off as needed and to abort Java programs while printing a message that states where in the program he error was detected.
http://java.sun.com/developer/technicalArticles/JavaLP/assertions/ - Jun, 2005 - Letting Java in on SQL Server Notifications by Laurence Moroney - [Clicks: 16]
SQL Server's Notification Services let you instruct the database to let your applications or your users know when data changes or reaches critical thresholds. Furthermore, standard notification delivery methods ensure that notifications aren't limited to .NET or Windows clients.
http://www.devx.com/Java/Article/28139 - May, 2005 - Use Callbacks to Isolate Concurrency Bugs by Greg Travis - [Clicks: 15]
By restricting all object data access to a callback mechanism, a Java server can contain all concurrency issues in a single place, making it much easier for you to see if concurrency constraints have been violated.
http://www.devx.com/Java/Article/28156 - May, 2005 - Java Tech: Language Lessons by Jeff Friesen - [Clicks: 21]
This article shares with you some of the lessons I've learned while working with Java. Several lessons point out problem areas to avoid; all lessons offer advice on writing better code. I hope you'll come away from this article with a greater understanding of the Java language, an awareness of these problem areas, and stronger Java coding skills.
[Includes sample code]
http://today.java.net/pub/a/today/2005/05/17/lessons.html - May, 2005 - A neural network for Java Lego robots by Julio Cesar Sandria Reynoso - [Clicks: 44]
The Lego Mindstorms Robotics Invention System lets you design and program real robots that do what you want them to. By using artificial neural networks, you can build intelligent robots that can learn and show emergent behavior. This article describes the backpropagation algorithm, a basic neural network, and its implementation on a Lego Roverbot with Java.
http://www.javaworld.com/javaworld/jw-05-2005/jw-0516-lego.html - May, 2005 - Timing is Everything by Chet Haase, Scott Violet, Hans Muller, Christopher Campbell, Vincent Hardy - [Clicks: 13]
Any time you introduce dynamic effects, animations, or time-based events to a Java application, you find yourself re-implementing the same functionality you have written for every application that required timing or animation. This article considers the current situation and what is needed in a timing framework.
http://java.sun.com/developer/technicalArticles/Media/timing/index.html - May, 2005 - Managing Component Dependencies Using ClassLoaders by Don Schwarz - [Clicks: 21]
Java's class loading mechanism is incredibly powerful. It allows you to leverage external third-party components without the need for header files or static linking. You simply drop the JAR files for the components into a directory and arrange for them to be added to your classpath. Run-time references are all resolved dynamically. But what happens when these third-party components have their own dependencies? Generally, it is left up to each developer to determine the full set of required components, acquire the correct version of each, and ensure that they are all added to the classpath properly.
[Includes source code]
http://www.onjava.com/pub/a/onjava/2005/04/13/dependencies.html - Apr, 2005 - Write Adaptive, Dynamic Code Using Reflection by Doug Tillman - [Clicks: 20]
Java's Reflection API allows you to write code that adapts to runtime conditions. And you don't have to be working in a large-scale application to reap its benefits, either. Find out how reflection can allow your applications to be more robust and flexible.
[Includes source code]
http://www.devx.com/Java/Article/27798 - Mar, 2005 - Patch an exception-handling framework by Niranjan R. Kamath - [Clicks: 17]
This article describes the Patch framework, an exception-handling framework for Java programs. It forces exception handling to remain outside a system's main business logic. In addition, that business logic is not affected when the way an exception is handled changes.
http://www.javaworld.com/javaworld/jw-03-2005/jw-0321-exception.html - Mar, 2005 - Inspire Harmony Between COM and Java with JCOM by Laurence Moroney - [Clicks: 32]
There are so many application extensions you can build with Microsoft Office applications using COM, but that's no use to Java developers … unless they have a handy Java-to-COM bridge. Using JCom you can control just about any COM object from within Java, plus it comes with some great helper classes for Excel right out of the box.
http://www.devx.com/Java/Article/27463 - Mar, 2005 - Hello JOGL by Gene Davis - [Clicks: 13]
In this article, an excerpt from Learning Java Bindings for OpenGL, author Gene Davis explains how to get started developing a graphics-intensive program with Java Bindings for OpenGL.
http://www.javaworld.com/javaworld/jw-02-2005/jw-0221-jogl.html - Feb, 2005 - Internals of Java Class Loading by Binildas Christudas - [Clicks: 88]
This article starts from the basics, such as the difference between code and data, and how they are related to form an instance or object. Then it looks into the mechanism of loading code into the JVM with the help of class loaders, and the main type of class loaders available in Java. The article then looks into the internals of class loaders, where we cover using the basic algorithm (or probing), followed by class loaders before it loads a class. The next section of the article uses code examples to demonstrate the necessity for developers to extend and develop their own class loaders. This is followed by explanation on writing your own class loaders and how to use them to make a generic task-execution engine that can be used to load the code supplied by any remote client, define it in the JVM, and instantiate and then execute it. The article concludes with references to J2EE-specific components where custom class loading schemas becomes the norm.
[Includes sample code]
http://www.onjava.com/pub/a/onjava/2005/01/26/classloading.html - Jan, 2005 - Java Tech: Acquire Images with TWAIN and SANE, Part 2 by Jeff Friesen - [Clicks: 99]
Last time, I introduced a three-part series on TWAIN and SANE. Part one explored TWAIN in terms of the big picture and necessary details, presented the JTwain API library that makes TWAIN available to Java, and revealed the JTwainDemo application that interacts with JTwain to obtain images from scanners and other image-acquisition devices (and present them to the user). Part one's JTwain API library has some problems. I begin the second part of this series by pointing out these problems and introducing a new JTwain API library that overcomes them. I next explore data source capabilities--a concept I hinted at in part one--and introduce that portion of the new JTwain API library dedicated to capabilities. I wrap up part two by introducing an improved JTwainDemo that demonstrates the new JTwain.
[Includes sample code]
http://today.java.net/pub/a/today/2005/01/25/twain.html - Jan, 2005
- Intermediate Java programming by Roy Miller - [Clicks: 38]
The Java language provides most of what professional programmers expect to see in a language, and even in an object-oriented language. Beyond the basics, though, the Java language provides some useful tools for creating sophisticated programs. This tutorial, a follow-on to "Introduction to Java programming," also by Roy Miller will introduce you to some of these more advanced Java language features commonly seen on typical Java technology development projects.
[Formats: HTML, PDF, Zip]
http://www-106.ibm.com/developerworks/edu/j-dw-java-intermed-i.html?S_TACT=104AHW02 - Jan, 2005