<s>
BD-J	B-Language
,	O
or	O
Blu-ray	B-Language
Disc	I-Language
Java	I-Language
,	O
is	O
a	O
specification	O
supporting	O
Java	B-Language
ME	I-Language
(	O
specifically	O
the	O
Personal	O
Basis	O
Profile	O
of	O
the	O
Connected	B-Language
Device	I-Language
Configuration	I-Language
or	O
CDC	O
)	O
Xlets	B-Language
for	O
advanced	O
content	O
on	O
Blu-ray	O
Disc	O
and	O
the	O
Packaged	O
Media	O
profile	O
of	O
Globally	B-Language
Executable	I-Language
MHP	I-Language
(	O
GEM	B-Language
)	O
.	O
</s>
<s>
BD-J	B-Language
allows	O
for	O
more	O
sophisticated	O
bonus	O
content	O
on	O
Blu-ray	O
Disc	O
titles	O
than	O
standard	O
DVD	O
,	O
including	O
network	O
access	O
,	O
picture-in-picture	O
and	O
access	O
to	O
expanded	O
local	B-Device
storage	I-Device
.	O
</s>
<s>
Collectively	O
,	O
these	O
features	O
(	O
other	O
than	O
internet	O
access	O
)	O
are	O
referred	O
to	O
as	O
"	O
Bonus	B-Language
View	I-Language
"	O
,	O
and	O
the	O
addition	O
of	O
internet	O
access	O
is	O
called	O
"	O
BD	O
Live	O
"	O
.	O
</s>
<s>
BD-J	B-Language
was	O
developed	O
by	O
the	O
Blu-ray	O
Disc	O
Association	O
.	O
</s>
<s>
All	O
Blu-ray	O
Disc	O
players	O
supporting	O
video	O
content	O
are	O
required	O
by	O
the	O
specification	O
to	O
support	O
BD-J	B-Language
.	O
</s>
<s>
Starting	O
on	O
October	O
31	O
,	O
2007	O
,	O
all	O
new	O
players	O
are	O
required	O
to	O
have	O
hardware	O
support	O
for	O
the	O
"	O
Bonus	B-Language
View	I-Language
"	O
features	O
,	O
but	O
the	O
players	O
may	O
require	O
future	O
firmware	O
updates	O
to	O
enable	O
the	O
features	O
.	O
</s>
<s>
Sony	O
's	O
PlayStation	B-Operating_System
3	I-Operating_System
has	O
been	O
the	O
de	O
facto	O
leader	O
in	O
compliance	O
and	O
support	O
of	O
BD-J	B-Language
,	O
adding	O
Blu-ray	O
Profile	O
1.1	O
support	O
with	O
a	O
firmware	O
upgrade	O
,	O
used	O
to	O
showcase	O
BD-Live	O
at	O
CES	O
2008	O
in	O
January	O
.	O
</s>
<s>
The	O
invocation	O
of	O
BD-J	B-Language
Xlets	B-Language
are	O
triggered	O
by	O
events	O
occurring	O
around	O
them	O
—	O
for	O
example	O
,	O
by	O
the	O
selection	O
of	O
a	O
film	O
title	O
,	O
or	O
by	O
the	O
insertion	O
of	O
a	O
new	O
disc	O
.	O
</s>
<s>
Xlets	B-Language
in	O
turn	O
can	O
then	O
call	O
other	O
Xlets	B-Language
into	O
play	O
.	O
</s>
<s>
Security	O
in	O
BD-J	B-Language
is	O
based	O
on	O
the	O
Java	O
platform	O
security	O
model	O
.	O
</s>
<s>
That	O
is	O
,	O
signed	O
applications	O
in	O
JARs	O
can	O
perform	O
more	O
tasks	O
than	O
non-signed	O
,	O
such	O
as	O
Read/Write	O
access	O
to	O
local	B-Device
storage	I-Device
,	O
network	O
access	O
,	O
selection	O
of	O
other	O
titles	O
on	O
the	O
BD-ROM	O
disc	O
,	O
and	O
control	O
of	O
other	O
running	O
BD-J	B-Language
applications	O
.	O
</s>
<s>
Xlets	B-Language
(	O
as	O
part	O
of	O
the	O
CDC	O
Personal	O
Basis	O
Profile	O
)	O
have	O
no	O
GUI	O
(	O
i.e.	O
</s>
<s>
no	O
AWT	B-Language
widgets	O
such	O
as	O
)	O
,	O
so	O
additional	O
classes	O
are	O
called	O
into	O
play	O
for	O
generating	O
animation	O
and	O
GUI	O
.	O
</s>
<s>
The	O
BD-J	B-Language
uses	O
the	O
Havi	O
UI	O
device	O
model	O
and	O
widget	O
set	O
for	O
remote	O
control	O
use	O
,	O
but	O
it	O
is	O
extended	O
to	O
allow	O
for	O
the	O
BD	O
supported	O
resolutions	O
and	O
BD	O
supported	O
A/V	O
controls	O
.	O
</s>
<s>
BD-J	B-Language
has	O
classes	O
that	O
allow	O
the	O
user	O
to	O
synchronize	O
accurately	O
to	O
specific	O
frames	O
in	O
the	O
film	O
.	O
</s>
<s>
Tight	O
synchronization	O
allows	O
applications	O
to	O
synchronize	O
accurately	O
to	O
the	O
exact	O
frame	O
using	O
timecodes	O
from	O
the	O
package	O
of	O
JMF	O
(	O
Java	B-Language
Media	I-Language
Framework	I-Language
)	O
.	O
</s>
<s>
A	O
BD-J	B-Language
application	O
's	O
GUI	O
can	O
be	O
operated	O
with	O
a	O
remote	O
control	O
with	O
a	O
required	O
set	O
of	O
keys	O
and	O
an	O
optional	O
pointing	O
device	O
.	O
</s>
<s>
The	O
GUI	O
framework	O
in	O
BD-J	B-Language
includes	O
the	O
HAVi(6 )	O
UI	O
framework	O
mandated	O
by	O
GEM	B-Language
;	O
it	O
is	O
not	O
a	O
desktop	O
GUI	O
framework	O
like	O
Swing	B-Language
or	O
AWT	B-Language
.	O
</s>
<s>
The	O
GUI	O
framework	O
is	O
based	O
on	O
the	O
core	O
of	O
AWT	B-Language
as	O
specified	O
by	O
PBP	O
,	O
but	O
the	O
widget	O
set	O
includes	O
mechanisms	O
for	O
remote	O
control	O
navigation	O
from	O
GEM	B-Language
and	O
easy	O
customization	O
of	O
look	O
and	O
feel	O
from	O
HAVi	O
.	O
</s>
<s>
BD-J	B-Language
includes	O
a	O
media	O
framework	O
similar	O
to	O
JMF	O
for	O
the	O
playback	O
of	O
media	O
content	O
related	O
to	O
the	O
BD-ROM	O
disc	O
.	O
</s>
<s>
It	O
is	O
assumed	O
that	O
the	O
BD-ROM	O
disc	O
will	O
be	O
the	O
prime	O
source	O
for	O
media	O
files	O
,	O
but	O
it	O
will	O
not	O
be	O
the	O
only	O
one	O
;	O
other	O
sources	O
could	O
be	O
the	O
studio	O
's	O
web	O
server	O
and	O
local	B-Device
storage	I-Device
.	O
</s>
<s>
BD-J	B-Language
includes	O
standard	O
Java	O
libraries	O
for	O
decoding	O
and	O
displaying	O
images	O
in	O
JFIF	O
(	O
JPEG	O
)	O
,	O
PNG	O
and	O
other	O
image	O
formats	O
.	O
</s>
<s>
An	O
image	O
can	O
also	O
be	O
rendered	O
in	O
the	O
background	O
plane	O
using	O
a	O
BD-J	B-Language
specific	O
package	O
.	O
</s>
<s>
These	O
text-rendering	O
functions	O
are	O
extended	O
with	O
a	O
more	O
advanced	O
text	O
layout	O
manager	O
that	O
integrates	O
with	O
the	O
BD-J	B-Language
UI	O
framework	O
.	O
</s>
<s>
Sound	O
files	O
can	O
be	O
loaded	O
and	O
rendered	O
as	O
a	O
reaction	O
to	O
the	O
user	O
pressing	O
a	O
key	O
,	O
or	O
as	O
a	O
reaction	O
on	O
a	O
marked	O
event	O
related	O
to	O
the	O
film	O
—	O
or	O
as	O
a	O
reaction	O
to	O
any	O
event	O
generated	O
by	O
a	O
BD-J	B-Language
Application	O
.	O
</s>
<s>
Authenticated	O
applications	O
can	O
use	O
a	O
(	O
signed	O
)	O
permission	O
request	O
file	O
to	O
acquire	O
permissions	O
that	O
go	O
beyond	O
the	O
BD-J	B-Language
sandbox	O
.	O
</s>
<s>
BD-J	B-Language
applications	O
can	O
use	O
the	O
package	O
to	O
connect	O
to	O
servers	O
on	O
the	O
Internet	O
.	O
</s>
<s>
At	O
the	O
network	O
level	O
,	O
TCP/IP	B-Protocol
is	O
supported	O
and	O
the	O
HTTP	B-Protocol
protocol	I-Protocol
may	O
be	O
used	O
.	O
</s>
<s>
Moreover	O
,	O
the	O
Java	O
package	O
for	O
secure	O
connections	O
is	O
included	O
(	O
JSSE	B-Protocol
)	O
as	O
part	O
of	O
the	O
BD-J	B-Language
platform	O
.	O
</s>
<s>
Before	O
a	O
BD-J	B-Language
application	O
can	O
use	O
the	O
network	O
connection	O
,	O
it	O
must	O
be	O
authenticated	O
and	O
have	O
suitable	O
permission	O
to	O
use	O
the	O
network	O
.	O
</s>
<s>
Only	O
(	O
disc	O
)	O
authenticated	O
BD-J	B-Language
applications	O
are	O
allowed	O
to	O
run	O
when	O
the	O
disc	O
is	O
played	O
.	O
</s>
<s>
In	O
addition	O
,	O
permissions	O
defined	O
on	O
the	O
disc	O
can	O
restrict	O
the	O
use	O
of	O
the	O
(	O
TCP/IP	B-Protocol
)	O
network	O
connection	O
to	O
certain	O
sites	O
.	O
</s>
<s>
BD-J	B-Language
will	O
include	O
support	O
for	O
storage	O
.	O
</s>
<s>
Two	O
flavors	O
of	O
storage	O
are	O
included	O
:	O
mandatory	O
System	O
Storage	O
and	O
optional	O
Local	B-Device
Storage	I-Device
.	O
</s>
<s>
The	O
path	O
for	O
local	B-Device
storage	I-Device
is	O
as	O
specified	O
by	O
 [ GEM ] 	O
.	O
</s>
<s>
System	O
storage	O
is	O
storage	O
that	O
will	O
be	O
present	O
in	O
all	O
BD-J	B-Language
players	O
.	O
</s>
<s>
For	O
this	O
purpose	O
,	O
optional	O
local	B-Device
storage	I-Device
is	O
available	O
.	O
</s>
<s>
Typically	O
system	O
storage	O
will	O
be	O
implemented	O
using	O
Flash	O
memory	O
and	O
the	O
optional	O
local	B-Device
storage	I-Device
will	O
be	O
implemented	O
on	O
a	O
HDD	O
.	O
</s>
<s>
Since	O
storage	O
is	O
a	O
shared	O
resource	O
between	O
all	O
discs	O
played	O
on	O
the	O
player	O
,	O
Java	O
access	O
control	O
is	O
part	O
of	O
BD-J	B-Language
.	O
</s>
<s>
BD-J	B-Language
applications	O
can	O
only	O
access	O
a	O
disc	O
specific	O
part	O
of	O
the	O
storage	O
space	O
and	O
cannot	O
access	O
the	O
part	O
belonging	O
to	O
other	O
discs	O
.	O
</s>
<s>
Content	O
authors	O
have	O
a	O
variety	O
of	O
development	O
strategies	O
available	O
,	O
including	O
the	O
use	O
of	O
traditional	O
Integrated	B-Application
Development	I-Application
Environments	I-Application
(	O
IDEs	O
)	O
like	O
NetBeans	B-Application
or	O
Eclipse	B-Application
,	O
non-programming	O
graphical	O
environments	O
similar	O
to	O
Macromedia	O
Director	O
,	O
or	O
via	O
rendering	O
engines	O
which	O
consume	O
standard	O
data	O
formats	O
such	O
as	O
HTML	O
,	O
XML	O
,	O
or	O
SVG	O
.	O
</s>
<s>
Having	O
a	O
full	O
programming	B-Application
environment	I-Application
available	O
on	O
every	O
Blu-ray	O
Disc	O
player	O
provides	O
developers	O
with	O
a	O
platform	O
for	O
creating	O
content	O
types	O
not	O
bound	O
by	O
the	O
restrictions	O
of	O
standard	O
DVD	O
.	O
</s>
<s>
In	O
addition	O
to	O
the	O
standard	O
BD-J	B-Language
APIs	O
,	O
developers	O
may	O
make	O
use	O
of	O
existing	O
Java	O
libraries	O
and	O
application	O
frameworks	O
,	O
assuming	O
they	O
do	O
not	O
use	O
features	O
outside	O
the	O
constraints	O
of	O
the	O
BD-J	B-Language
platform	O
,	O
include	O
that	O
Java	B-Language
ME	I-Language
only	O
supports	O
Java	O
version	O
1.3	O
class	O
files	O
.	O
</s>
<s>
A	O
set	O
of	O
freely	O
available	O
tools	O
that	O
allow	O
Java	O
developers	O
to	O
produce	O
complete	O
disc	O
images	O
incorporating	O
BD-J	B-Language
is	O
available	O
from	O
the	O
HD	O
Cookbook	O
Project	O
.	O
</s>
<s>
In	O
order	O
to	O
test	O
content	O
in	O
a	O
typical	O
development	O
environment	O
(	O
MS	O
Windows	O
)	O
,	O
one	O
needs	O
either	O
a	O
PlayStation	B-Operating_System
3	I-Operating_System
or	O
a	O
third-party	O
software	O
player	O
for	O
Windows	O
,	O
paying	O
attention	O
to	O
player	O
versions	O
to	O
ensure	O
that	O
the	O
player	O
supports	O
BD-J	B-Language
.	O
</s>
<s>
Because	O
of	O
the	O
many	O
different	O
standards	O
and	O
components	O
involved	O
,	O
creating	O
unified	O
documentation	O
on	O
BD-J	B-Language
has	O
proven	O
to	O
be	O
a	O
challenge	O
.	O
</s>
<s>
The	O
BD-J	B-Language
environment	O
is	O
designed	O
to	O
run	O
Xlets	B-Language
with	O
non	O
-	O
packages	O
available	O
to	O
take	O
advantage	O
of	O
the	O
features	O
particular	O
to	O
this	O
platform	O
beyond	O
that	O
defined	O
by	O
Java	B-Language
TV	I-Language
.	O
</s>
<s>
Digital	B-Application
Video	I-Application
Broadcasting	I-Application
(	O
DVB	B-Application
)	O
classes	O
in	O
package	O
tree	O
:	O
alternative	O
classes	O
to	O
,	O
for	O
example	O
,	O
the	O
interface	O
rather	O
than	O
for	O
support	O
for	O
key	O
presses	O
and	O
keycodes	O
specific	O
to	O
popular	O
CDC	O
devices	O
.	O
</s>
<s>
Blu-ray	O
Disc	O
classes	O
in	O
the	O
package	O
tree	O
:	O
the	O
DAVIC	O
and	O
DVB	B-Application
classes	O
depend	O
upon	O
to	O
recognize	O
additional	O
events	O
peculiar	O
to	O
the	O
BD-J	B-Language
platform	O
such	O
as	O
popup	O
menus	O
and	O
to	O
locate	O
media	O
on	O
the	O
Blu-ray	O
disc	O
.	O
</s>
<s>
DAVIC	O
API	O
classes	O
in	O
package	O
tree	O
:	O
A	O
small	O
set	O
of	O
classes	O
wrapping	O
or	O
extending	O
other	O
network	O
and	O
media	O
resources	O
peculiar	O
to	O
interactive	O
TV	O
the	O
HAVi	O
,	O
DVB	B-Application
and	O
Blu-ray	O
classes	O
use	O
for	O
locators	O
and	O
specialized	O
exceptions	O
beyond	O
the	O
realm	O
of	O
JMF	O
(	O
such	O
as	O
content	O
authorization	O
)	O
.	O
</s>
<s>
A	O
working	O
example	O
of	O
a	O
program	O
using	O
some	O
features	O
from	O
each	O
of	O
the	O
class	O
trees	O
would	O
be	O
the	O
BdjGunBunny	O
Xlet	B-Language
(	O
a	O
very	O
simple	O
version	O
of	O
Space	B-Application
Invaders	I-Application
using	O
an	O
image	O
of	O
a	O
rabbit	O
as	O
the	O
shooter	O
and	O
turtles	O
as	O
the	O
targets	O
)	O
provided	O
as	O
an	O
example	O
in	O
the	O
.	O
</s>
