Contenu connexe
Similaire à Oracle Java ME Embedded 8.1 Devloper Preview: Introduction (20)
Oracle Java ME Embedded 8.1 Devloper Preview: Introduction
- 3. Oracle
Java
ME
Embedded
8.1
Developer
Preview
Terrence
Barr
Senior
Technologist
and
Principal
Product
Manager
Java
Embedded
&
Internet
of
Things
Oracle
Sep,
2014
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
Introduc0on
- 4. Industry
Wide
Collabora0on
Embedded
SoCs,
OEMs/ODMs,
Semiconductors
RASPBERRY
PI
500000
450000
400000
350000
300000
250000
200000
150000
100000
50000
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
4
Java
Embedded
adopMon
2400+
Registra0ons
83
Countries
Java
Embedded
MOOC
~500,000
Downloads
-‐
20+
PlaHorm
Ports
PowerPC,
Intel
x86,
MIPS
- 5. Driving
the
EvoluMon
of
Java
ME
8
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
Oracle
Java
ME
Embedded
8
• Purpose-‐built
embedded
applicaMon
plaRorm
• Dozens
of
enhanced/new
features
and
value-‐added
APIs
• Major
step
in
Java
ME-‐>SE
alignment,
strict
extended
subset
of
Java
SE
8
• MulMple
footprint
configuraMons
down
to
as
low
as
128
KB
RAM
• ConnecMvity
supports
a
wide
range
of
interfaces,
including
cellular
• Security
adds
client
domains
and
SE-‐style
fine-‐grain
permissions
• BeZer
tooling:
Network
&
memory
monitoring,
new
device
emulaMon
Oracle
Java
ME
Embedded
8.1
• Support
for
ARM
Cortex
M3/M4
micro-‐controllers
• Developer
preview
on
Freescale
FRDM-‐
K64/mbed
Arduino-‐compaMble
plaRorm
• Updated
Raspberry
Pi
support
• Improved
support
of
Qualcomm
Gobi
M2M/IoT
plaRorms
for
two
new
device
families
• New
communicaMon,
security
&
networking
features,
including
two
new
security
APIs
• New
tooling
over
USB,
heap
analysis,
70%
faster
tooling
communicaMon
5
- 6. Embedded
soeware:
Scaling
with
mbed
and
Java
Drive
plaHorm
consistency,
developer
produc0vity,
and
soQware
intelligence
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
• Reduce
embedded
plaRorm
fragmentaMon
and
Mme-‐to-‐market
• Enable
Java
Embedded
on
a
growing
range
of
mbed-‐enabled
devices
• Combine
the
strengths
of
the
mbed
and
Java
communiMes
and
partners
6
- 7. Java
8
for
ARM
Cortex-‐M3/M4
Micro-‐Controllers
• Java
ME
Embedded
8.1
Developer
Preview
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
– Supports
Freescale
FRDM-‐K64F
• KineMs
K64F,
120
MHz,
256
KB
RAM/1
MB
Flash,
running
ARM
mbed
OS
• Arduino
form-‐factor
and
pin-‐out.
Approx.
$25
street
price
– Java
ME
8
funcMonality
on
small
embedded
&
IoT
devices
• Feature-‐rich,
opMmized
Java
ME
8
runMme
in
190
KB
RAM,
enabling
highly
funcMonal
Java
Embedded
applicaMons
on
single-‐chip
micro-‐controller
systems
• Simple
installaMon
• Support
for
Java
8
language,
core
APIs,
networking,
device
I/O,
storage,
and
more
• Rich
development
and
tooling
via
Java
ME
SDK
8.1
and
NetBeans
8
IDE
• Complements
exisMng
Java
ME
8
plaRorms
such
as
Raspberry
Pi,
scaling
Java
ME
8
from
large
to
small
• Ideal
for
evaluaMon
and
prototyping
of
small
embedded
&
IoT
soluMons
– FREE
download
available
now
via
Oracle
Technology
Network
(OTN)
- 8. Features:
Developer
Preview
on
FRDM-‐K64F
CLDC
8
“Full
Profile”
Full
CLDC
8
VM,
language,
API
support
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
MEEP
8
“Minimal
Profile
Set”
MEEP
8
applicaMon
model
(single
applicaMon
execuMon)
Applica0on
provisioning
and
control
• Remote
installaMon
(onto
SD
card)
• Remote
applicaMon
execuMon
and
life-‐cycle
control
GCF
8
API
Supported
protocols:
• Socket,
secure
socket,
HTTP,
HTTPS,
TLS
1.0
NIO
File
API
Access
to
SD
file
system
for
storage
of
applicaMons,
data,
and
configuraMon
files
Device
I/O
API
Supported
interfaces/devices:
GPIO,
I2C,
UART,
ADC/DAC,
SPI,
PWM,
Pulse
Counter,
including
on-‐board
LEDs,
buZons,
and
accelerometer,
magnetometer
Op0onal
APIs
JSON,
OAuth
2.0,
Async
HTTP
(as
applicaMon
libraries,
memory
perminng)
Networking
Ethernet
IPv4,
DHCP
or
staMc
addressing
USB/serial
Console
output
and
logging
Tooling
via
ME
SDK
&
NetBeans
IDE
Edit,
build,
deploy,
control
(no
on-‐device
debugging
due
to
memory
limits)
Ready-‐to-‐run,
flashable
binary
Complete
Java
runMme
(includes
mbed
kernel,
naMve
modules,
Java
libs)
Free
heap
space
for
applica0ons
Approx.
60
KB
- 9. Hints
for
OpMmizing
on
Resource-‐Constrained
Devices
• Design
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
for
the
target
– Be
aware
of
memory
and
processing
limitaMons
– ParMMon
your
problem
and
keep
local
processing
small
&
efficient,
push
heavyweight
operaMons
to
next
Mer
(e.g.
gateway
or
server)
– OpMmize
code
by
leveraging
built-‐in
Java
ME
8
plaRorm
funcMonality
• Java
8
language
features,
applicaMon
framework,
security
model,
built-‐in
libraries
and
APIs,
communicaMon
protocols,
I/O
access,
and
more
• Save
footprint
– Especially
important
on
low-‐RAM
devices
(below
~300
to
400
KB
RAM)
– Watch
for
number/size
of
classes
&
number/size
of
runMme
objects
– Reduce
jar
size
by
building
with
debug
info
off
and
enabling
obfuscaMon
- 10. Java
ME
8
Resources
• Java
ME
8
Oracle
Technology
Network
(OTN)
downloads
Free
for
development
and
evaluaMon
purposes
• Oracle
Java
ME
Embedded
8.1
Developer
Preview
• Oracle
Java
ME
SDK
8.1
Early
Access
#3
• hZp://www.oracle.com/technetwork/java/embedded/javame/embed-‐me/downloads/index.html
• Java
ME
8
DocumentaMon
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
• Developer
Preview
on
FRDM-‐K64F:
Release
Notes,
Ge+ng
Started
Guide
• Java
ME
8
Developer
Guide,
plus
new
chapter:
Java
ME
Op;miza;on
Techniques
• Full
Java
ME
8
API
doc
set
• hZp://docs.oracle.com/javame/8.0/
• Terrence
Barr’s
blog
• hZp://terrencebarr.wordpress.com/
Oracle
ConfidenMal
–
Internal
- 11. Safe
Harbor
Statement
The
preceding
is
intended
to
outline
our
general
product
direcMon.
It
is
intended
for
informaMon
purposes
only,
and
may
not
be
incorporated
into
any
contract.
It
is
not
a
commitment
to
deliver
any
material,
code,
or
funcMonality,
and
should
not
be
relied
upon
in
making
purchasing
decisions.
The
development,
release,
and
Mming
of
any
features
or
funcMonality
described
for
Oracle’s
products
remains
at
the
sole
discreMon
of
Oracle.
Copyright
©
2014,
Oracle
and/or
its
affiliates.
All
rights
reserved.
11