Create, test, and deploy applications on Java platforms for mobile and embedded devices Mobility Tech Tips

Wednesday Apr 01, 2009

By Bruce Hopkins

Java technology is an integral part of the new high-definition video standard: the Blu-ray Disc standard. In the past year, Sun published a two-part series to lower the learning curve for Java developers who want to get started using the Blu-ray Disc for Java (BD-J) platform.

In Part 1: Creating Your First Application, I provided an introduction to the BD-J platform and provided information on the various APIs that are required by BD-J, including GEM/MHP (Globally Executable Multi Home Platform) and Java TV. In Part 2: Responding to User Input, I showed you how to use the Java ME SDK to create an application that can respond to the user via the remote.

Among the thousands of readers of this series, several readers submitted the following questions in the Comments section of the articles.

Question: Is it really a good idea to use org.havi and org.dvb classes? Will this work on all Blu-ray players?

Answer: Yes, it is perfectly fine to use any of the use org.havi and org.dvb classes that are a part of the BD-J specification. Specifically, those classes originate from the GEM/MHP layer of the BD-J software stack, and all Blu-ray players must support them. Please refer to Part 1, where I provide a complete list of all the Java packages that must be supported in all Blu-ray players on the market (including PC-based Blu-ray players).

Question: I have following the problem when I compile the source file:

Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Details message: target="${javac.target}"
deprecation="${javac.deprecation}" optimize="${javac.optimize}"
debug="${javac.debug}"
srcdir="${buildsystem.baton}" destdir="${build.classes.dir}"
bootclasspath="${platform.bootclasspath}"
includes="${javac.includes}"
encoding="${javac.encoding}">

Answer: If you’re using the Java ME SDK 3.0 platform and you’re having a compilation error, then please refer to the instructions provided in Part 2: I list step-by-step instructions on how to set up the Java ME SDK 3.0 to compile BD-J applications. Note that the Java ME SDK 3.0 cannot compile BD-J applications in its default state after you install the SDK. It must be configured with the BD-J libraries to compile BD-J applications.

Final Thoughts

Thanks to all the readers who took the time to provide feedback to this article series! Your input, thoughts, questions, and ideas are always welcome and appreciated.
Comments:

It is great initiative to help techie people around the globe.i really apreciate it.

I'm working on .Net technlogy but i do have a simple question regarding java,i hope you will be able to reply it at ease.

I wanted a java program should accept integers from command line directly without conversion from string to integer. is it possible.if so please guide with example.
Thanks and regards
Firdous A Shah

Posted by Firdous A Shah on April 03, 2009 at 04:51 AM PDT #

Thanks for your feedback. For your question regarding integers from the command line, may I suggest you post the same question on the Java forum? You will then have exposure to many of your fellow developers/programmers. The answer may already be answered, in fact. You might start with the Java Essentials category at <http://forums.sun.com/category.jspa?categoryID=5>.

Posted by Christine Dorffi on April 03, 2009 at 11:58 AM PDT #

I'm not a technical person but I have a question about what the technology (BD-J) is capable of doing.

With this technology can i shoot a film that has different endings (either store the endings on the disk or download the ending as desired) thus allowing the user to select one... on-demand conclusion?

Of course, I'm expecting the selected ending will fit seamlessly into the movie plot etc.

Posted by Joe Tinnerello on May 07, 2009 at 07:56 PM PDT #

how do i use html using the program?

Posted by elda gecain on May 30, 2009 at 05:00 AM PDT #

Is there a way I can run a sample application on my PS3 without buying a BR writer? Can the code be loaded off HDD, or a dvd disk?

Posted by anm anm on June 04, 2009 at 07:15 AM PDT #

Joe,

Yes, Blu-ray technology and the BD-J API will allow you to film various endings to a movie on the same disc, and allow the user to select the desired ending.

Thanks,

Bruce

Posted by Bruce Hopkins on June 07, 2009 at 09:41 PM PDT #

Anm,

I've heard of people trying to get BD-J applications working on the PS3 without burning their applications to Blu-ray discs, but I can't vouch for the success rate of such an endeavor.

Posted by Bruce Hopkins on June 07, 2009 at 09:59 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed