| Home : Java : Java |
| Click "Subscribe" if you want to be notified of new or updated links in this category. | Subscribe |
|
|
|
Editor's note: In this first sample recipe from O'Reilly's Java Extreme Programming Cookbook (from Chapter 5 on \"Ant\"), you'll learn how to set up an efficient development environment using an Ant buildfile. In the coming weeks, we'll offer sample recipes from the book on Mock Objects, JUnitPerf, and XDoclet, so check back here over the next few weeks to sample the latest recipes.
Updated: 05/18/2005
|
|
|
This week we present Terence Parr and Jim Coker's introduction to ANTLR, the parser generator, and a grammar for generating a parser to recognize Java programs. A technical presentation of this kind of material is intimidating, almost by definition. Rest assured: this is not a course on compilers. We want you to understand only enough about parsing to be able to operate ANTLR and modify the provided grammar to help you write interesting and useful applications. Enticing features can be added to programs that can perform a syntax analysis of Java source code. Examples include syntax directed editors, and class hierarchy browsers, as well as simple source code conversion and translation tools.
Updated: 05/18/2005
|
|
|
As an out-of-the-box installation that handles many Java-development needs, Ant has rightfully earned a spot in practically all Java development projects. With a few additional optional libraries, Ant's capabilities increase dramatically. Ant cannot do it all, though, which is why extensibility was built into it. Let's explore Ant's extensibility and interface Ant directly with IBM alphaWorks' Robocode for some fun at the same time.
Updated: 05/18/2005
|
|
|
When Java technology was first released to the public in the summer of 1995, the Java Development Kit (JDK) came with very basic development tools. Developers used their favorite text editors to write Java code, compiled it with the javac compiler, and shipped their applications as a bunch of .class files. But the Java developer community and several software vendors soon realized that Java is the language and platform of the future (and still is), so they developed all kinds of productivity tools to help Java developers deal with complex projects and write the best applications.
Updated: 05/18/2005
|
|
|
Programming in Java doesn't have to be dull and boring. In fact, it's possible to have a lot of fun while programming in Java. This is the third lesson in a short miniseries that shows you how to use the Robot class to write programs that are both fun and useful.
Updated: 05/18/2005
|
|
|
Beware the programming convenience of unchecked exceptions, and don't cut corners with Java's variety of exception-handling techniques. In \"Streamline Your Exception Processing\" (Java Pro, May 2003), several good recommendations on how to use exceptions in Java programs were discussed. However, one practice recommended there has some ramifications that were not explored in depth. We'll consider some of the implications of throwing only unchecked exceptions in your code, but first, let's take a broader view of exceptions.
Updated: 05/18/2005
|
|
|
Regular readers will recall that I've been discussing small Java databases for handheld devices. I've examined the Mobile Information Device Profile's (MIDP's) record management system (RMS), as well as the Catalog class in the Java variant Waba/SuperWaba. In \"Liten Up\" (October 2002), I took a side trip up the food chain for a look at the UltraLite deployment option of Sybase SQL Anywhere. Now I'm going to reverse my climb and, so to speak, dive into the basement.
Updated: 05/18/2005
|
|
|
The recently released JavaTM 2 SDK, Standard Edition Version 1.4 contains a large number of new features, including many changes and additions to the focus subsystem. This is the second lesson in a new miniseries that will teach you how to use the features of the new focus subsystem. The first lesson in the series was entitled Focus Traversal Policies in Java Version 1.4.
Updated: 05/18/2005
|
|
|
Application interoperability is a constant requirement in enterprise computing. With Java 2 Platform, Enterprise Edition (J2EE) and .Net taking over enterprise development, interoperability and integration will remain as important as ever. Despite the support both development platforms provide for open Web services standards, making the two work together is not as simple as plug and play.
Updated: 05/18/2005
|
|
|
Mobile user experience is improved by provisioning Java applications onto mobile devices, which allow the user to continue working with the mobile application even when disconnected from the network. These applications are best built using a \"store-and-forward\" communication paradigm, which is provided through appropriate messaging middleware (MOM) technology on the device. This article motivates the usage of JMS middleware in the development of \"rich\" J2ME client applications.
Updated: 05/18/2005
|
|
|