Skip to main content
View Archives: Homepage | Spotlights | Articles | Weblogs

java.net Spotlight

This is what Mike Milinkovich, executive director of the Eclipse Foundation, had to say about the grant: "It is important for the Eclipse Foundation to provide our community with the tools they need to enhance developer productivity. As a key contributor to EclipseLink and other projects, Oracle has been a strong supporter of our efforts. Through the Oracle Compatibility Testing Scholarship Program...

[07/28/2013]

Wouldn't it be handy to know how many messy methods you have, and where they are found in your application, that is, where exactly are the worst culprits, those that are just really wildly long with multiple nested clauses and loops and return statements everywhere? And what about all those classes with bizarre numbers of constructors? Or the constructors where dozens of parameters are received or classes that are hopelessly intertwined with other classes? Enter NetBeans code metrics, introduced in NetBeans IDE 7.4...

[07/26/2013]

As I wrote previously, a WebSocket API is only the starting point for WebSocket-style messaging applications. Many practical challenges remain. As one Tomcat mailing list user mused recently: "It does seem to me that websockets is still not really "production-ready", (I am not talking about the Tomcat implementation per se, but more generally) … native websockets capability in IE is only available since IE-10 and that solutions which allow this to work in lower IE versions are a bit "iffy"..."

[07/24/2013]

Oracle has announced the general availability of the latest releases to Java ME Embedded 3.3 and Java ME Software Development Kit (SDK) 3.3, a complete client Java runtime and toolkit optimized for microcontrollers and other resource-constrained devices. This release includes improvements of interest to developers, including ways to not have to build so much "core plumbing" for an app, and more information about memory and network usage, which can be critical for low-power apps...

[07/23/2013]

This issue features "Securing Java - New Track for JavaOne SF 2013!" - Security is a broad interest shared by the entire Java community. To meet community security interests head-on we added a new track to JavaOne - Securing Java. Many developers will never have the opportunity to attend a security conference. At JavaOne, security is integrated into our program...

[07/22/2013]

The Java API for JSON Processing provides portable APIs to parse, generate, transform, and query JSON. JSON (JavaScript Object Notation) is a lightweight, text-based, language-independent data exchange format that is easy for humans and machines to read and write. JSON can represent two structured types: objects and arrays. An object is an unordered collection of zero or more name/value pairs. An array is an ordered sequence of zero or more values...

[07/21/2013]

Back in 2011 I wrote a blog post about what I wanted to have in Java EE 7. Java EE 7 has been released, some of my Java EE 7 wishes have been fulfilled (Flow management and Batch processing), books have started to be published, and now it’s time to start thinking of Java EE 8. Here is what I would like to have in Java EE 8: More transparency and cohesion in the JCP...

[07/18/2013]

Every week, we feature a new developer/blogger from the DZone community here and in our newsletter, catching up to find out what they're working on now and what's coming next. This week we're talking to Dr. Richard Warburton, developer at jClarity, author of an upcoming O'Reilly book on Java 8 Lambdas, and PhD in Computer Science. His most recent DZone posts include...

[07/17/2013]

Learn about the field of heuristic search and its application to artificial intelligence. This article's authors show how they arrived at a successful Java implementation of the most widely used heuristic search algorithm. Their solution exploits an alternative framework to Java Collections and uses best practices for avoiding excessive garbage collection...

[07/16/2013]

It’s been almost 2 years since we released JavaFX 2.0 on Windows, followed by Mac OS X and Linux support, and plenty of new features. It has been a blast for us, and we’re pretty happy with what we’ve accomplished so far. JavaFX 8 (JDK 8) is looking in great shape, and we’re pretty much done open sourcing all of JavaFX through OpenJFX. However, nothing matches hearing from you and getting a pulse on the developer community. So...

[07/15/2013]

A key feature of Java ME Embedded is the ability for developers to access peripheral devices directly from Java application code. This significantly simplifies development effort because the device-related code is much easier to write, portable across platforms, and there is no need for complicated native code development and integration. The latest Device Access API is available in Java ME Embedded 3.3, and already supports a host of features...

[07/14/2013]

Oracle WebLogic 12.1.2 is now available. WebLogic 12.1.2 contains EclipseLink 2.4.2, this means that for the first time EclipseLink MOXy's JSON-binding is available in WebLogic out of the box. I will demonstrate the benefits of using MOXy for JSON-binding with an example. Below is the Java model we will use for this post. The same metadata will be used to customize the XML and JSON produced by our JAX-RS service...

[07/12/2013]

Tobias Schlotte asked the question (via twitter @tobsch), "Where is thread-safety on your agenda for Nashorn?" The quick answer is that multithreading is very high on the list, but MT-safety is a very complicated issue. I'll attempt to explain our plan of action...

[07/10/2013]

We are in the process of designing a table within our JavaFX UI which is being developed using Scene Builder and FXML with CSS for the UI styling. The table contains information about shipping containers with a requirement that the table row be color coded based on the status of the particular container... I could not find an online tutorial which covered this type of conditional formatting with the UI written in FXML and CSS, so I wanted to document a solution for this problem...

[07/08/2013]

Kevlin Henney is an author, presenter, and consultant on software development. He has written on the subject of computer programming and development practice for many magazines and sites... He is a member of the IEEE Software Advisory Board. Henney is also coauthor of books on patterns and editor of 97 Things Every Programmer Should Know...

[07/05/2013]

The upcoming NetBeans Platform 7.4 @TemplateRegistration attribute requireProject is handy when you want to display a file template in the New File dialog when you have no project that relates to it. However, what if you not only have no related project but no interest in the NetBeans project system at all? Then you have a problem because you need the NetBeans project APIs if you want to have the New File dialog...

[07/03/2013]

A new Open Source Software Development Center is open at University of Belgrade Serbia. It centers around using Java & NetBeans as open source projects to learn from and contribute to. Assistant Professor Zoran Sevarac says that not only does the center allow him to teach software development using open source projects, but also "we are improving our University courses based on the experience we get from working on open source code..."

[07/02/2013]

NetBeans 7.3.1+ comes with JBoss 7 integration similar to GlassFish v3/v4. To integrate JBoss with NetBeans: Download and install JBoss 7 and NetBeans 7.3.1+, Go to "Services" tab (Keybinding: Cmd+5), Right click on "Servers", Choose "JBoss" and follow the next few clicks. Now you can run any Java EE application directly on JBoss, just by right-clicking on a JavaEE project, choosing the "Run" item and selecting your server...

[07/01/2013]

You might feel like a kid in a candy store grabbing third-party code from GitHub or another repository, but there are still some tricks to integrating it with your Android UI. This month, Andrew Glover shows you how to take the Overheard Word demo app up a level with a JSON-based word engine and some prebaked, swipe-gesture functionality...

[06/30/2013]

Batch processing is used in many industries for tasks ranging from payroll processing; statement generation; end-of-day jobs such as interest calculation and ETL (extract, load, and transform) in a data warehouse; and many more. Typically, batch processing is bulk-oriented, non-interactive, and long running—and might be data- or computation-intensive. Batch jobs can be run on schedule or initiated on demand. Also...

[06/27/2013]

There will be over 500 technical sessions, BOFs, tutorials, and hands-on labs offered. Note that "Securing Java" is a new track this year... In the Content Catalog you can search on tracks, session types, session categories, keywords, and tags. Or, you can search for your favorite speakers to see what they’re presenting this year... Start checking out JavaOne content now...

[06/26/2013]

Interview with Paul Perrone, founder and CEO of Perrone Robotics, on using Java Embedded to test autonomous vehicle operations for the Insurance Institute for Highway Safety that will save lives. Paul architected the Java-based general-purpose robotics and automation software platform known as “MAX”, and has overseen MAX’s application to rapidly field self-driving robotic cars, unmanned air vehicles, factory and road-side automation applications, and...

[06/25/2013]

We recently attended EMEA IOUC Summit 2013 in Ghent, Belgium, last spring (EMEA IOUC stands for International Oracle User Group Community from Europe, Middle East and Africa). This meeting was very important because that's an opportunity that user group leaders have to share what really works and what actually doesn't work when managing their community...

[06/24/2013]

The London Java Community (LJC), which is an Executive Committee member of the Java Community Process (JCP), is asking Java developers to participate in a JCP survey titled "What should the JCP be doing?" The JCP is the mechanism that decides on future standards related to Java technology. Those standards give users like you a choice of technologies to develop with and more independence from vendor solutions. Take the survey...

[06/23/2013]

In several years of developing, reading, reviewing, and maintaining hundreds of thousands of lines of Java code, I have become accustomed to seeing certain "red flags" in Java code that often imply problems with the code. I'm not talking about practices that are always wrong, but rather practices that might, in limited circumstances, be appropriate but generally are a sign of something wrong. Here I summarize some of these and discuss situations in which they might be okay as well as why they typically are not okay...

[06/20/2013]

Yesterday, Brian Goetz (Lambda architect) suggested that I produce an example of Lambda being used from Nashorn. Since, I've been heads down in Nashorn, I really haven't played with Lambda that much. After looking at some examples from Stuart Marks, I figured, what the hey, it doesn't look that hard. Details of the Lambda APIs are available at JDK 8 b92 API. Many constructs are familiar to JavaScript developers. The main things to note...

[06/19/2013]

The time has arrived to open nominations for the 2013 JCP Annual Awards (Hall of Fame page)! The JCP program celebrates success. Members of the community nominate worthy participants, Spec Leads, and Java Specification Requests (JSRs) in order to cheer on the hard work and creativity that produces ground-breaking results for the community and industry in the Java Standard Edition (SE), Java Enterprise Edition (EE), or Java Micro Edition (ME) platforms...

[06/18/2013]

Want to maximize your technical knowledge of Java and minimize the time it takes to do so? OTN's Virtual Developer Day lets you learn about the latest technical improvements in Java without leaving your desk/couch/park bench. Watch informative tutorials on your laptop and improve your Java programming expertise and engage in live chat sessions with Java experts, all for FREE...

[06/17/2013]

I've always liked the idea of computer vision and on the very long list of things I'd like to spend more time exploring is the OpenCV libraries which have a handy set of Java bindings. In the past I've experimented with, and used some of the other frameworks that are available for image capture in Java, specifically the Java Media Framework (JMF) and the Freedom for Media in Java (FMJ), mostly around the idea of integrating images from a webcam into an application like a security monitoring system. Sadly...

[06/16/2013]

Java EE 7 has arrived, with lots of new tools designed to make you more productive and let you add new capabilities to your Web applications. The May/June issue of Java Magazine focuses on what's new and notible in Java EE 7—including HTML 5 support, WebSockets, JAX-RS, JSON, batch processing, concurrency, and more. There are interviews and and hands-on articles that help you get up to speed with Java EE 7 right away. Also...

[06/13/2013]