Wednesday Dec 16, 2015

Java on Raspberry Pi

The Raspberry Pi now comes with BlueJ and Greenfoot, two educational programming environments for 14 year olds and up.  "This is the first time a Java development environment runs directly on the Raspberry Pi", says Michael Kölling, Professor of Computer Science at the University of Kent and project leader for the BlueJ and Greenfoot projects. ‘We provide a custom-made library for the Pi; it has never been this easy to access its hardware components from any programming language.’

Designed for young developers, Greenfoot is an interface for creating games and simulations with Java. Those games can now run on Raspberry Pi using sensors and other hardware. Tutorials are available to learn the IDE and build games. The IDE and training are free. 

BlueJ is designed to teach Java basics to university students in their first year of programming.  Millions of students each year start learning with BlueJ tool. It helps them understand object-oriented concepts and get started with Java faster than with traditional teaching methods. Tutorials with BlueJ and the Raspberry Pi are available here

This makes a great holiday gift! Just buy the newest Raspberry Pi 2 which comes with BlueJ and Greenfoot. 

Useful Links:  
Programming Contest: The Greeps Are Coming!

Thursday Dec 04, 2014

Devoxx4Kids Fun Fest in Silicon Valley

Devoxx4Kids is presenting a weekend full of tech workshops for kids on Dec. 20/21, including topics like Raspberry Pi, Arduino, Python, Minecraft Modding, Circuit Art, and much more. Be sure to sign up and follow the software download instructions (your child will get sooo much more out the day if they have the software downloaded and ready to go before their sessions). This Fun Fest is an ideal start to your Winter holidays (have your kids *make* games rather than just playing them!). Register your kids now, sessions fill up quickly!

Help us spread the word locally by sharing the link in your neighborhood alias, school, work, and local community. A downloadable flyer is available to share.

The goal of Devoxx4Kids USA is to get kids excited about technology with the hope that many of them will become producers of technology in future. They conduct variety of hands-on workshops where children build computer games, program robots, build circuits, program microcontrollers etc. and have fun. There are lots of opportunities for volunteering such as registration, technical support desk, helping the instructor, and many more. If you are interested in volunteering, then please sign up (training available! lots of ways to help!).

Friday Oct 03, 2014

IoT Magic Steals the Show

By Guest Blogger Timothy Beneke

Oracle’s Java Technology Ambassador Stephen Chin presented the “Internet of Things Magic Show” session before a packed crowd on Wednesday morning at JavaOne. The session made it clear—as has much of JavaOne 2014—that with a little ingenuity, persistence, and a Raspberry Pi, Java developers can easily deploy their skills to create IoT magic shows of their own. Chin emphasized the strength of Java for the IoT space, especially now that the divide between Java SE and Java ME has been dramatically narrowed with Java 8. “Java ME as a language is almost the same as Java SE minus lambdas,” observed Chin, “and a prototype of lambdas for Java ME is well on its way. Also, a lot of Java SE APIs are finding their way to Java ME as well.”

Fun with Mr. Grabby
He presented a small smart robot, named Mr. Grabby, that resembles a crab with grippers that can be made to remotely grab and carry a white glowing ball. The robot can then navigate its way around tracks laid down in the form of white tape on the floor.

Mr. Grabby is an autonomous robot using Raspberry Pi and other hardware on top as a controller, plus an Arduino board that uses pin mapping and a motor controller. “Programming the pin assignments right is the biggest issue,” said Chin. “You use software serial on Arduino, where you take any two soft pins and do the serial protocol manually. It uses line follower software, which captures infrared light off the ground through two lights and two sensors; there is an infrared emitting light and another sensor that picks up the infrared. When Mr. Grabby goes off the track, he knows to compensate and follow the lines.”

Chin invited a developer named Mark onstage who successfully took Mr. Grabby around the tracks in a time of 40 seconds. All Mr. Grabby code is available on github.

3-D Printing Magic
Chin then displayed a 3-D printer, which was now busy making a customized bracelet for Mark. The printer has a Raspberry Pi and uses OctoPrint to monitor it remotely. He showed a console that displayed the temperature of the plate and the extruder plus a live video of the bracelet being made.

Software for the printer—known as open constructed geometry software—was designed by Michael Hofer entirely in Java. Hofer leveraged the JavaFX 8 APIs, which now include 3-D support, and built a visual tool for visualizing how 3-D products will look. The code controls space between links, the radius of the sphere, and other pertinent details.

“Printing is done by taking complex shapes and adding and deleting objects from them, so you can delete a bunch of filters from a larger filter to create a space,” explained Chin. Chin illustrated ways that the bracelet could be made bigger and smaller as needed.
He closed by showing a timelapse video of the printer constructing the bracelet.

Tuesday Sep 30, 2014

Life around the Java Hub

By Guest Blogger Timothy Beneke

At the Java Hub, Java’s flexibility was illustrated through a number of demos and displays. The message was clear: any Java developer can program in Java Embedded, so get your Raspberry Pi, connect it to your favorite device, and have fun with the Internet of Things (IoT). Aldebaran Robotics presented the friendly, 2-foot-tall, high-tech Nao robot, which can be used to enhance social awareness among autistic children. It danced, gave fist bumps, and seemed to drink in the attention. Across the room, a 3-D printer performed its magic, creating clones of Duke using JavaFX and Oracle Java Embedded.

James Gosling’s Wave Glider
A Liquid Robotics Wave Glider, with software developed by James Gosling, was also on display. Wave Glider, which looks like a souped-up yellow surfboard, is an autonomous water and solar-powered platform that transmits oceanic information such as water temperature and chemistry, wind speed, living organisms, and ocean bottom topography using Java SE Embedded applications for defense, oil and gas, and commercial and science customers.

Wave Glider has two parts, the surfboard-like “float” loaded with solar panels to recharge lithium-ion batteries—which resides at the ocean’s surface—and the sub, equipped with wings and tethered six meters below.  

Java Capabilities for the Green Power Industry

Alexander Belokrylov, product manager for Java ME Embedded, showed off Java ME capabilities for the green power industry, demonstrating how a Java ME Embedded application can control and monitor energy sources on a bicycle-driven electric generator.

“This is just a regular bicycle that illustrates the Raspberry Pi functionality,” explained Belokrylov. “Here it is connected to a bicycle, but it could also function with an irrigation system or many other things. The key point is that with Java ME and no libraries, we can run a fully autonomous system that connects to the cloud and measures energy usage. This is a small footprint and it can do a lot. We want Java developers to take this power and run with it!”

A Car that Knows You
Gary Collins, principal member of technical staff at Oracle, showed off the Telematics Car Demo from Sunday’s Java Strategy keynote, where a simulated electric car used Java ME Embedded data and JavaFX to aggregate and display temperature, speed, light sensor, crash, and other data. “The functionality enables a car to make adjustments for drivers,” explained Collins. “Suppose you drive this car from a rental agency and come back to rent it again. The agency can access data about you and adjust the car for temperature, seating position, preferred radio stations and many other applications. It’s a car that can learn your preferences and patterns.”

Playing with Java SE Embedded

Across from the car simulator, a row of Raspberry Pis interfaced with cubed light bulbs, Sphero Robotic Balls, XY-Plotters for drawing, and more. Attendees were invited to choose an “if statement” and then tweet, send an SMS message using a motion or light sensor, draw their names with a Java or Oracle logo or picture of Duke, and more. Light bulbs could light up in strange ways; a Sphero Ball could act crazy. It was all in the spirit of play to illustrate that Java SE Embedded offers a wide range of possibilities for developers who want to try out the IoT with Java 8.

    Thursday May 15, 2014

    Oracle Massive Open Online Course: Develop Java Embedded Applications Using a Raspberry Pi

    Start Date: Friday , May 30th, 2014 3:00 pm GMT

    Based on the overwhelming response for the Java Embedded MOOCwe are offering the course again!

    Have you wondered what the future of embedded devices looks like?

    Have you ever wanted to create your own weather station or design a device to control the lights in your home automatically?

    All of these questions will be answered in this practical hands-on course. This course introduces Java developers to the world of embedded devices and the Internet of Things (IoT). Embedded controllers are already a part of our lives. Meters read electric and water usage and send the readings to a central office. Electronic thermostats turn on the heat and air conditioning as required.

    Java Embedded leverages your experience with Java to open the world of the Internet of Things by providing direct access to electronic sensors and mechanical devices.

    Presented by: Tom McGinn, Angela Caicedo, Jim Weaver, Simon Ritter

    Register for the Java Embedded MOOC now! Order your gear! Jump into IoT!

    Wednesday Nov 13, 2013

    Rainbows and Unicorns at the Devoxx OTN Hack Fest

    At the OTN Hack Fest at Devoxx, several developers did their first "hello world" with the Internet of Things (IoT). They had fun and built basic applications with Java Embedded, Raspberry Pi and Leap Motion controllers. Experts Yara & Vinicius Senger and Geert Bevin provided the basics and support. Senior Developer from ZeroTurnaround Geert Bevin did a bit of hacking too. Check out this video to see what he came up with in an hour:

    Learn more about Java Embedded at the Oracle Technology Network

    Thursday Mar 14, 2013

    Early Access Release of Oracle Java ME Embedded 3.3 for the Raspberry Pi and Java ME SDK 3.3 now available

    Oracle has announced Early Access releases for Java ME Embedded 3.3 and the Java ME Software Development Kit (SDK) 3.3. This release provides an early access version of the reference binary for the Raspberry Pi, and is available on the Oracle Technology Network. Developers can start testing out the new features and functionality in the first complete Java runtime client optimized for ARM architecture connected microcontrollers and other resource-constrained devices--for just $35! The early access release of the Java ME SDK 3.3 adds support for embedded development on all the same supported platforms as Java ME Embedded 3.3, as well as full featured plug-ins for Netbeans and Eclipse. These releases provide everything a developer needs to get up and running quickly and easily in the small embedded world.

    Java ME Embedded 3.3 is available as an early access release for Raspberry Pi (Model B) development board (for ARM11, Linux). This early access version of the product is available as a reference binary that is ready to install and run on the target development board. There is a rich set of peripheral IO APIs that make it possible to access a variety of different devices. Please send us your your feedback from testing this early access release. Tell us/show us what you are doing with small embedded devices and Java! (Ed Note: You can submit a video URL for the Java YouTube channel to otnfeedback_usAToracleDOTcom.) Additional functionality includes:

    • the ability to monitor application memory status and network traffic at runtime.
    • logging enhancements so you can better filter and customize edge data collected by your target device.
    • build configurability to simplify right-sizing of stack at build time for small devices.

    Java ME Software Development Kit (SDK) 3.3 provides a complete development and debugging environment for Java ME applications, now including support for embedded development on several platforms, including Windows 7. This release provides a device abstraction layer for your development environment via the SDK, on-device development with the Raspberry Pi, and new device emulators.

    To get started, you can watch this video by Java Evangelist Simon Ritter "Getting Started with Oracle Java ME Embedded and Raspberry Pi"

    Download Java ME Embedded 3.3
    Download Java ME Software Development Kit (SDK) 3.3

    Monday Jan 07, 2013

    Top 10 Java Tech Articles Published by OTN in 2012

    Here are the top 10 articles (by page views) we published on OTN/Java in 2012.

    What conclusions can we draw from this list? 

    • JavaFX continues gaining momentum (with six articles on the list!)
    • Java Embedded and Raspberry Pi are generating a lot of interest.
    • Adam Bien stays our most popular Java EE author.

    If you have your own observations, let's see them in comments.

    Top 10 Java Tech Articles Published by OTN in 2012

    1. Getting Started with Java SE Embedded on the Raspberry Pi 
    by Bill Courington and Gary Collins
    August 2012

    2. How to Get Started (FAST!) with JavaFX 2 and Scene Builder
    by Mark Heckler  
    November 2012

    Lots of interest in JavaFX in 2012

    3. Laying Out a User Interface with JavaFX 2.0
    by James L. Weaver
    March 2012

    4. Building Applications in JavaFX 2.0
    by Daniel Zwolenski
    February 2012

    5. Interfaces on Demand with CDI and EJB 3.1
    by Adam Bien
    January 2012

    6. Key to the Java EE 6 Platform: NetBeans IDE 7.1
    by Geertjan Wielenga
    March 2012

    7. Best Practices for JavaFX 2.0 Enterprise Applications: Part One
    by James L. Weaver
    April 2012

    8. Challenging the Diabolical Developer: A Conversation with JavaOne Rock Star Martijn Verburg
    by Janice J. Heiss
    October 2012

    9. Best Practices for JavaFX 2.0 Enterprise Applications: Part Two
    by James L. Weaver
    May 2012

    10. The Enterprise Side of JavaFX: Part Two
    by Adam Bien
    June 2012

    Want to see your name on this list for 2013? We're always looking for good writers. We are looking forward to seeing your proposals!


    Insider News from the Java Team at Oracle!



    « February 2016