Tuesday Nov 26, 2013

Brian Goetz Offers a View Into Lambda Development

After delivering the Devoxx keynote, Java Chief Language Architect Brian Goetz talks to OTN.  He takes on the question of why lambda expressions took so long to implement and how lambdas will impact developers.  

Monday Nov 25, 2013

Lego, Robots and Java!

In this video, Java Evangelist Angela Caicedo talked about her new Duchess robot built with Lego Mindstorm. "We are moving into the Internet of Things and I am looking for cool devices that we can connect and use Java" said Angela   

The robot is connected to touch and color sensors, has a gyroscope to orient and prevent it from falling, 2 motors for the wheels and another for arms, and an infrared sensor for the remote control. 

Technical Article: JavaFX Integration Strategies

"You will rarely find isolated applications in the enterprise," says Adam Bien in the new OTN technical article entitled JavaFX Integration Strategies. Instead, an enterprise desktop application renders and manipulates the data of one or more back-end services exposed by an application server. This article focuses on the integration of Java EE services with JavaFX applications. It discusses synchronous and asynchronous communication with a JavaEE backend. LightFish and LightView were used as examples.

Author Adam Bien is a Java Champion, architect and Java developer. He is an Expert Group member for the Java EE 6 and 7, EJB 3.X, JAX-RS, and JPA 2.X JSRs.  He is the author of Real World Java EE Patterns—Rethinking Best Practices and Real World Java EE Night Hacks—Dissecting the Business Tier, and all around good guy.

Read JavaFX Integration Strategies article.

Want JDK8 to be Great?

Uncle DukeDo you want JDK8 to be great? Duke needs *your* help to find issues and find them now! JDK 8 B116 EA Build is now available for download & test.

As Java 8 gets closer to the endgame we all need to help test and report issues. So please, add it as a JVM to your CI build, try running it at home and have a play with Lambdas!

You can get more details and resources on all of this at http://adoptopenjdk.java.net

As Java Champion Martijn Verburg said, "If you want Lambdas nice and early then testing Java 8 now *really* helps the whole Java community get a great release on day one."

Friday Nov 22, 2013

Java Magazine: The Internet of Things for Java Developers

Futuristic, automated homes are becoming a reality, and home automation is a prime example of the Internet of Things (IoT). The current issue of Java Magazine looks at IoT and what it opportunities it presents for Java developers. We also bring you a special section on development best practices, community news, and more.

Highlights include:

Smartest House on the Street
The Internet of Things meets home automation with Java-based openHAB.

Internet of Things 101
Explore concepts relevant to the Internet of Things by creating an embedded application. 

Special Section: Development Best Practices 
Articles on Agile, performance tuning, concurrency, DevOps, and team dynamics.

Concurrency Utilities for Java EE
Learn how to execute task using application server concurrency services.

JCP Interview
Patrick Curran The JCP chair on charting the future with JCP.next

Java Magazine is a FREE, bi-monthly, online publication. It includes technical articles on the Java language and platform; Java innovations and innovators; JUG and JCP news; Java events; links to online Java communities; and videos and multimedia demos. Subscriptions are free, registration required.

Do you have feedback about Java Magazine? Send a tweet to @oraclejavamag.

Thursday Nov 21, 2013

Coding at Internet of Things (IoT) Hack Fest

Devoxx IoT Hack Fest offered the chance for attendees to code with Java Embedded for multiple devices. Attendees built embedded applications using devices and sensors in just a couple of days. A pre-configured panel, created by Globalcode founder Vinicius Senger, a long-time Java embedded developer and trainer, connects Raspberry Pi, Arduino, Beaglebone black, and Gemalto boards to a series of sensors such as distance, motion, alcohol and temperature sensors, as well as relays and camera. Those components are accessible remotely via a web server and REST calls. A new addition to IoT Hack Fest at Devoxx was the Leap Motion. ZeroTurnaround senior developer Geert Bevin lent nine Leap Motion controllers, gave a training session and was the onsite mentor for the Leap Motion.  

During two days, attendees learned and hacked the panel and the Leap Motion. For example, Hartmut Lang hacked a sensor distance and the blink(1) component with Java Embedded Suite, Jersey API. He turned on a ThingM blink(1) multi-colored USB light via the proximity sensor on the Java Embedded Panel. The proximity data is accessible through a Java sever running on a Raspberry PI with an Arduino bridge. REST calls give access to the current sensor data. This was then translated to Java calls that control the intensity of the blink(1) light. Everything was programmed in Netbeans and was running on a dedicated Raspberry PI.

A number of projects were about controlling the relays using Java SE Embedded, Pi4J and JavaFX. They connected their applications to the panel with the Raspberry Pi's and relays. Others worked with JavaFX and Raspberry Pi. They created a distance measurement using Fuzzy Logic, Arduino, Java Embedded Suite, RXTX, Things API and JavaFX to control lights. Thomas Kriechbaum worked with Java SE Embedded, Apache Camel, MQTT for Android, MQTT with Camel and Mosquito to control actuators and reading sensors. Geert Van Landeghem built an animation framework for LCD displays using Java SE Embedded, Pi4J/I2C and LCDPlate Adafruit

Senior software architect Claude Falguière created an interactive game to teach kids the principle of programmed operations. This is done by leading a robot through a maze. Changing the directions of the robot is done via hand gestures with the leap Motion controller. Each direction change is recorded as a card and shown as the list of operations. These can be manipulated and started again.

An ant-chasing game, written in Scratch used the Leap Motion plugin with a Java application for the gesture-interpreting gateway. Players moved their fingers around in the air and an ant chased its movements. 

Geert Bevin created an application controlling multi-colored led strip with hand gestures. The Leap Motion controller detects hand position in 3D-space and sends the X/Y/Z data straight to the led strip to control the intensity of the red/green/blue lights. The led strip was connected to a Raspberry PI with an Arduino bridge and could be piloted through REST calls running on an embedded Java server. In this video, Geert explains the project.  

More projects online at the IoT Community on Java.net

Wednesday Nov 20, 2013

More JavaOne Sessions Online

A new batch of JavaOne sessions are now online for you to view.  From Hadoop to M2M, and even Minecraft, these sessions give you the best technical information. My favorite from the latest batch: The Seven Deadly Sins of Java EE Projects by Markus Eisele.  

You can also download the JavaOne app from Parleys (for iPad or Android) to view the JavaOne sessions both online and offline.

We'll be rolling out new sessions until the end of the year, so check back often for the latest content. It's all free, brought to you by the Oracle. Check them out!

Monday Nov 18, 2013

Are You Ready for the Next Java SE Update?

Oracle has created two new resources, the 
Java RIA Security Checklist and the Java Security Resource Center to help you prepare for the next Java SE update, Java SE 7 update 51 (scheduled for January 2014). This release changes the deployment requirements for Applet & Web Start applications with two new requirements: 

  1. Use of the Permissions Manifest attribute
  2. Valid code signatures. 

These changes will not affect developers of back-end or client applications; the scope is limited only to Java Applets & Web Start Applications (RIAs). Read details in the blog  New security requirements for RIAs in 7u51.

Java RIA Security Checklist

The changes scheduled for Java 7 update 51 means the default security slider will require Code Signatures and the Permissions Manifest attribute. Java RIA Security Checklist
 provides best practices to help development teams track work necessary to accommodate user prompts.

Security Resource Center

Oracle has launched a new Java Security Resource Center to aggregate security-related information for the Java community based on your role: developer, system administrator, home user, or security professional.

Additional Resources

 To ensure that end users’ systems are secure when using Java-based content, Oracle strongly recommends that you always upgrade to the most recent release. You can remove old versions of Java either during upgrades or by using the Java Uninstall Tool on Java.com.

Thursday Nov 14, 2013

Devoxx HackFest In-Action Attracts Developers

by guest blogger Geert Bevin, Senior Developer, ZeroTurnaround. Geert Bevin presented the Leap Motion at IoT Hack Fest

The Raspberry PI and Leap Motion hands-on labs at Devoxx 2013 started with a packed room, we even had to fetch additional chairs for people standing in the back. Vinicius and Yara senger explained their super useful embedded devices panel where many sensors and boards can be accessed through easy REST URLs.

After my quick overview of the Leap Motion controller, the attendees could experiment with all available devices and get acquainted with it before starting a hack. Surprisingly though, only a couple of developers were interested to stick around for the real hack-fest that lasted the rest of the day.

 We set up everything upstairs in the Devoxx open-space and started hacking with the brave few that showed up. As the day advanced though, more and more people came by and were impressed to see the work in progress. On Tuesday evening all the tables were packed with hackers testing and building cool stuff. Ten of them were able to finish their project and some even presented it on video for the Oracle Technology Network YouTube channel.

I had a great time and it's wonderful to see how easily accessible physical embedded devices speak to the imagination of so many developers. 

Here's my hack that lets you control a strip of multi-colored lights that are connected to Arduino over a Raspberry Pi and are remotely controlled with the Leap Motion controller over the network.

Video: Richard Bair on Java and the Internet of Things, Lambdas and more

Richard Bair, Client Java Architect, discusses Java and the Internet of Things, JavaFX, Lambdas and more. Video, from the Devoxx conference:


Insider News from the Java Team at Oracle!



« November 2013 »