Even Quicker Guide to Install Java Embedded on a Raspberry Pi

Here's an even Quicker Guide to install Java Embedded on a Raspberry Pi:
 sudo apt-get update && \
   sudo apt-get install oracle-java7-jdk

That's it! It's fast, simple, and easy to remember... It's easy to remember if you find that everything you do after the "sudo" is easy to remember, that is... :-)

See:

Even Quicker RPi Java Embedded

Here's a quote:

 All future Raspbian images will ship 
 with Oracle Java by default; existing 
 users can install it by typing:

 sudo apt-get update && sudo \
   apt-get install oracle-java7-jdk

 We’d like to thank our friends at 
 Oracle for their hard work in making 
 this possible.
You are most welcome! Raspberry Pi and Oracle Java rule!

Comments:

Isn't it mis-leading to refer to this as Java Embedded? In this case you're actually installing the full Java SE SDK, not Java ME (which is also now available for Raspberry PI in early-access form at http://www.oracle.com/technetwork/java/embedded/downloads/javame/index.html ).

Corey

Posted by guest on October 03, 2013 at 11:34 AM PDT #

Hi Corey,

Thanks for the comment. It's not misleading since the Java runtime that we provide for JDK 7 on Linux/ARM is reduced from the big Java SE 7 runtime you get for desktops and laptops. We officially call it "Java SE Embedded" to signify that the footprint has been reduced, has embedded-specific optimizations (Ex. ARM specific JIT compiler optimizations, etc.) and left out desktop/laptop pieces that don't make sense (such as Java Plug-In and Java Web Start).

And, since Java SE Embedded on Raspberry Pi is different than Java SE 7 for desktop and laptop PCs, and was specifically created to run on embedded devices, this version of the Java runtime that the Raspian distro has in its repo (oracle-java7-jdk) can be considered truly to be Java Embedded.

The Java ME Embedded runtime is meant for microcontrollers to connect sensors, actuators and low-level peripherals. It can run on the Raspberry Pi also, but developers will find Java SE Embedded is more feature rich as faster on a target board like the RPi.

Hope this helps clarify things.

Thanks,
Hinkmond

Posted by Hinkmond Wong on October 03, 2013 at 12:08 PM PDT #

Hinkmond,

Thanks for the explanation. Wasn't aware of the Java SE Embedded flavour. Likely the package name should make that explicit.

I agree that Java SE Embedded is likely going to be the most generally useful for the Pi. Java ME 8 has a very interesting Device Access API though for anyone connecting stuff via GPIO/I2C etc.

Regards,
Corey

Posted by guest on October 03, 2013 at 12:16 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

Hinkmond Wong's blog on making Machine to Machine (M2M) and the Incredible Internet of Things (IoT) smarter with Java Embedded Technologies

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today