Skip to main content

How to begin BDJ ?

7 replies [Last post]
terymas
Offline
Joined: 2007-09-03
Points: 0

Hi all,

I have no knowledges on Java and I want to create my first BDJ project.
Have you some advices for me ??

Also, I'm a new menber and I'll read and search more information on this forum.

Thank you for your help.
Tery

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gent2k7
Offline
Joined: 2007-06-25
Points: 0

Hi terymas,
I'm currently creating my first BD-J project, and I still have some troubles.
From where you start depends on where you are now, what is your knowledge regarding BD-J, and HDMV ? Have you ever authored a HDMV project ? a DVD ?
Yet, you should consider reading the documentations/specifications of all around BD-J such as :
- 2b_bdrom_audiovisualapplication_0305-12955-13403.pdf is a good start (available on sony website : http://www.blu-raydisc.com/Section-13470/Section-13628/Index.html
- http://www.blueboard.com
- for understanding interactive tv (xles etc.) and have USEFUL examples : http://www.tvwithoutborders.com/tutorials/javatv

Then, you have to pick up some java editor and take a look at :
- http://java.sun.com/products/java-media/jmf/1.0/guide/JavaMediaFrame.fm7...
- http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/
- JavaTM 2 Platform, Standard Edition, v 1.3.1 API Specification
- Havi specs (web)
- https://hdcookbook.dev.java.net/javadocs/grin/com/hdcookbook/grin/doc-fi... => is a great framework using xlets etc. but not Havi (but it's not mandatory for blu-ray development), and they propose some bdjo generator which is great if you don't have any pro software (such as Sonic Scenarist BD-J)

I'll post some samples when I have made some...

Good luck

blackmage
Offline
Joined: 2007-08-28
Points: 0

I have my examples from http://www.tvwithoutborders.com/tutorials/javatv/first_xlet but I just don't know how to compile. javac throws an error but in eclipse I have the BDJ.jar in the class path with all the xlet information but it won't compiler. Are there other editors out there or an can I compile xlets in Eclipse?

BTW, I'm using Ubuntu 7.04(Linux) on a Mac with Eclipse 3.2.

bjoern_minkmar
Offline
Joined: 2007-06-11
Points: 0

Hi blackmage,

I assume that you have taken two approaches to compile your source-files:

1) compile with javac via command-line
Here i guess that javac throws an error because the BDJ.jar is not in the classpath.
You could do something like this:

javac -classpath path/to/bdj.jar YourXlet.java

or you could add the BDJ.jar to your JRE by simply copying it to Path\to\JDK\jre\lib\ext.

2) compile with Eclipse
Eclipse compiles your source-files in the background. So when there are no errors in
your source-code (no warnings in Eclipse) you should find the compiled class in
the workspace on your harddrive (Path\to\workspace\projectname\YourXlet.class or Path\to\workspace\projectname\bin\YourXlet.class)

Hope this helps.

Cheers,
Björn

blackmage
Offline
Joined: 2007-08-28
Points: 0

Doesn't work. Here is a copy of my console:

[code]
john@john-laptop:~/Desktop/workspace/BluRay$ ls
BDJ.jar HaviExample.class MySecondXlet.java
HaviBackgroundController.class HaviExample.java
HaviBackgroundController.java MySecondXlet.class
john@john-laptop:~/Desktop/workspace/BluRay$ javac -classpath
john@john-laptop:~/Desktop/workspace/BluRay$ javac -classpath ~/Desktop/workspace/BluRay/BDJ.jar MySecondXlet.java
john@john-laptop:~/Desktop/workspace/BluRay$ ls
BDJ.jar HaviExample.class MySecondXlet.java
HaviBackgroundController.class HaviExample.java
HaviBackgroundController.java MySecondXlet.class
john@john-laptop:~/Desktop/workspace/BluRay$ java MySecondXlet.class
Exception in thread "main" java.lang.NoClassDefFoundError: MySecondXlet/class
john@john-laptop:~/Desktop/workspace/BluRay$

[/code]

So I still don't get why doesn't ie compile. Any idea why not?

Bill Foote

bd-j-dev@mobileandembedded.org wrote:
> Doesn't work. Here is a copy of my console:
>
> [code]
> john@john-laptop:~/Desktop/workspace/BluRay$ ls
> BDJ.jar HaviExample.class MySecondXlet.java
> HaviBackgroundController.class HaviExample.java
> HaviBackgroundController.java MySecondXlet.class
> john@john-laptop:~/Desktop/workspace/BluRay$ javac -classpath
> john@john-laptop:~/Desktop/workspace/BluRay$ javac -classpath ~/Desktop/workspace/BluRay/BDJ.jar MySecondXlet.java
> john@john-laptop:~/Desktop/workspace/BluRay$ ls
> BDJ.jar HaviExample.class MySecondXlet.java
> HaviBackgroundController.class HaviExample.java
> HaviBackgroundController.java MySecondXlet.class
> john@john-laptop:~/Desktop/workspace/BluRay$ java MySecondXlet.class
> Exception in thread "main" java.lang.NoClassDefFoundError: MySecondXlet/class
> john@john-laptop:~/Desktop/workspace/BluRay$
>
> [/code]
>
> So I still don't get why doesn't ie compile. Any idea why not?

Well, it looks like it did compile - there is a
MySecondXlet.class file.

When you launch a java application from the command line,
the command is "java MyClassName", not "java MyClassName.class",
which explains the NoClasssDefFoundError. However, if you fix that,
you still can't just run an xlet from the command line like this; you
need some kind of xlet running environment.

I'd recommend starting with a little bit of normal desktop java
development, just to get used to the tools and stuff. Once that's
working you can start looking at getting code into a BD software
player. Expect it to take a fair amount of effort to put all the
pieces together, though.

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

blackmage
Offline
Joined: 2007-08-28
Points: 0

I've already done a very good amount of desktop development with just regular java, applets, databases, excel, whatever you can do with Java. But when comes to this blu-ray stuff with java, I'm just lost. It has the structure of an applet but doesnt run like one.

So what kind of xlet running enviroment can I use? Just to get a simple xlet working?

blackmage
Offline
Joined: 2007-08-28
Points: 0

And I have a PS3 a my blu-ray player, which also has Ubuntu Linux on it as well as the regular XMB Playstation OS. Is there a tutorial on how to get it on the player?