Skip to main content

BD-Stubs

5 replies [Last post]
kevin13
Offline
Joined: 2009-05-07

Hi,

I am relatively new to this & I'm having a few problems.I know there are other threads on this but I've come to a bit if a dead end with this. Any help would be gratefully received!

Using NetBeans I've checked out the HDCookBook repository but when compiling I receive many errors such as.

'package java.tv.xlet does not exist'.

I have collected the source files to compile against -

BD-ROM_Part3-2_v3.4_javadoc_080623-html.zip
BD-ROM_Part3-2_v3.4_javadoc_080623-src-stubs.jar
fp10b.zip
jsse103.zip
jtv111.zip
mug226-gem_packaged_media.zip
pbp10b.zip

I have read on other posts that I need to group these into a 'classes.zip' file but where
exactly do I put 'classes.zip' so the project compiles successfully?

Thanks
K

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
billf
Offline
Joined: 2004-02-13

> I have read on other posts that I need to group these
> into a 'classes.zip' file but where
> exactly do I put 'classes.zip' so the project
> compiles successfully?

Hi. Welcome to BD-J!

There's a Wiki entry on making the classes.zip.

hdcookbook.com -> "Authoring Notes and Guidelines Wiki"
-> second bullet, "BD-J Platform Definition"

As to where to put it, that's up to you. Read
/vars.properties - that will tell you how to
make a user.vars.properties that points the cookbook stuff
to wherever you choose to install your classes.zip.

Many of the demo xlets also require you to have a user.vars.properties.
I'm sure we documented this somewhere, but anyway, the point is that a lot
of the demo xlets are meant as stand-alone examples. Thus, each one needs to
have two properties set, to identify where the cookbook repository and the
stubs are. This is consistently done with a two-line user.vars.properties
file that you provide. We don't check that file into the repository for obvious
reasons.

Cheers,

Bill

kevin13
Offline
Joined: 2009-05-07

Thanks Bill,

I've found the README doc in the lib directory which says

'This is a directory for libraries, like the BD-J platform
classes. Things like the Netbeans project refer to this directory.

You should put a copy (or a symlink)
to a zip archive of the BD-J
platform classes in the file bdj_platform.zip in this directory'

I Guess this should work. Trying it now.

Cheers
K

kevinkeaveney
Offline
Joined: 2008-08-26

.

kevin13
Offline
Joined: 2009-05-07

I've read the wiki and it's been a great help.

The platform definition shell script works fine and I used the resulting classes.zip
to compile against. If I create a new Blu-ray_Disc_Java_Project using the Netbeans BD-J plugin I can successfully compile using the classes.zip. Using the cookbook project still gives missing package errors, despite ammending the user.vars.properties to point towards classes.zip for each xlet. Very frustrating!

Maybe I'm missing something here, the classes.zip work, just not within the cookbook project. I can run target on the check-stubs of the build.xml with no problems, therefore the ${HDC_BDJ_PLATFORM_CLASSES} is set correctly.

billf
Offline
Joined: 2004-02-13

Can you run and from the command line, and send the console output? I'm sure it's something simple, but without knowing precisely what you're doing, it's hard to guess what might be wrong.