Skip to main content

Just started and already stuck...

19 replies [Last post]
0911314
Offline
Joined: 2010-07-11

I'm new into the world of BD-J and have to do a project building interactive blu-ray applications using BD-J.
My voyage has started off badly because I am not getting the same results as what is shown on the "Setting up your development environment..." instructions here:
http://java.sun.com/developer/technicalArticles/javame/bluray/part2/

At Step 3: Select the appropriate platform, I don't have the "External BD-J" option, I only have "Stubs for BD-J Platform". Is this due to a change in the software or is something missing on my computer?

I also tried installing the "BD-J project" plugin for Netbeans and that didn't work for me. I still couldn't create BD-J projects.

And do the email addresses of anyone at sun.com actually work??

Would appreciate any and all help as I have just about exhausted all my avenues, I can't find anyone who has ANY BD-J experience.

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

> oh by the way, i had 317 warnings from the build. i
> had a lot of "Tag @see: missing '#': """,
> "Tag @see: can't find "", "Tag @see:
> reference not found ..." ad nauseum...
> i now have the 2 directories (enhanced, interactive)
> but the classes.zip file is noticeably absent.
> why?
> there were no errors, just the warnings at the end so
> i can't see why it didn't generate the classes file.

I bet there was an error buried in there somewhere.

Yeah, those javadoc warnings are annoying. I don't think there's anything much we can do to fix them, though -- I wish there were a command-line option to javadoc to disable them, but I didn't find one. Anyway, you might want to try commenting out the javadoc generation stage. That might make whatever error you're getting more visible.

Message was edited by: billf

bd-j-dev@mobileandembedded.org

I just checked my windows pc here and it most certainly lets me go File > New Project > CDC Application and then it lets me choose Stubs for BD-J platform to build against. So maybe it has changed since the original documentation, can you confirm that building it this way still works?

You can get the bdj.jar from a player such as ArcSoft total media, but they are prebuilt .class files. You won't be able to generate the javadoc for org.bluray.* but you still can for all the other stubs, javax.*, org.davic.*, etc. discount true religion jeans
thomas sabo charm armbänder
cheap true religion jeans
louis vuitton purse
[Message sent by forum member 'kalb']

http://forums.java.net/jive/thread.jspa?messageID=478554

---------------------------------------------------------------------
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

billf
Offline
Joined: 2004-02-13

Oh, hey, I just realized that you're not asking about IDEs in general, and you're probably talking about a Netbeans-based package that might have been called something like the "Sun SDK for Blu-ray." Perhaps you're assuming that this came from the HD Cookbook team, which Chihiro and I were on back in the day.

To avoid confusion, the cookbook team, based in California, wasn't very involved with the Netbeans IDE for Blu-ray project. Because of that, we probably aren't good sources of information about the SDK/IDE/NetBeans.

Now, the shell script on the wiki that makes the stubs is something we did, so a problem with that including a specific error message we could probably help with.

Cheers,

Bill

0911314
Offline
Joined: 2010-07-11

Ok, i'll try to summarize the problems:
1) Installed the Java ME SDK 3.0 and when trying to configure the development environment as per Bruce Hopkins instructions, my screen is different to his Figure 1 screenshot. i.e. i don't have the "Path to BD-J Stubs" bit.
2) Proceed to Step 3 on Bruce Hopkins instructions and select the appropriate platform. Again, his Figure 4 screenshot is not what i have on my screen. I don't have the "External BD-J" platform option, instead i have "Stubs for BD-J Platform".

Are these differences due to the software being updated and can be disregarded or is there something awry with my setup?

3) when i run the build.sh script (using Sun VirtualBox) i get a thousand msgs that various files are being inflated, but errors at javac and javadoc. so i only end up with the interactive and enhanced folders containing empty html folders!

build.sh: line 125: javac: command not found
zip warning: name not matched: *

zip error: Nothing to do! (try: zip -r ../../interactive/classes.zip . -i *)

and the same build.sh msgs for lines 133,157, and 165.

billf
Offline
Joined: 2004-02-13

> build.sh: line 125: javac: command not found

It looks like you don't have Java correctly installed on your computer. Maybe you only have the Java runtime, and not the development environment, or something like that. Install the JDK 1.6 SDK (which I guess is called Java SE 6 or something along those lines), and make sure the path is set correctly.

If you've got the Java SDK correctly installed, you should be able to go to a terminal window and type "javac -version", and get something like this:

billf@~/wb/repo/BDJCreCode2$ javac -version
javac 1.6.0_20

0911314
Offline
Joined: 2010-07-11

Yep, i had the SDK installed, i just (somehow) didn't have the path set correctly.
the other thing i noticed is that there were a couple of differences in filenames referenced in the build.sh file and the actual files i had in my "originals" folder. i.e. jtv111 was java_tv-1.1.1 etc. and the BD stubs file i got from the good people at the BDA was v2.2 (i believe in the build.sh file it was v3.4?)
so i had to edit the build a bit (and if in doing so i have violated an terms of use, then i didn't edit anything)...
so at least i have some good news at last.... after all that though, i don't know if i have enough time to get very far with my project...

0911314
Offline
Joined: 2010-07-11

oh by the way, i had 317 warnings from the build. i had a lot of "Tag @see: missing '#': """, "Tag @see: can't find "", "Tag @see: reference not found ..." ad nauseum...
i now have the 2 directories (enhanced, interactive) but the classes.zip file is noticeably absent.
why?
there were no errors, just the warnings at the end so i can't see why it didn't generate the classes file.

dekz
Offline
Joined: 2010-07-04

Hi again,

You say you're running the build file through a virtual machine using VirtualBox? If you're getting javac and javadoc errors you might not have the Java classpath in your shells class path. That might be the problem you're having, you might need to add it to your .profile file.

0911314
Offline
Joined: 2010-07-11

i left VirtualBox alone and went with cygwin.
my path was not set up correctly hence the "command not found" errors. got that bit done but i'm not getting the classes.zip file in the "enhanced" and "interactive" folders for some reason.

billf
Offline
Joined: 2004-02-13

I'd suggest looking at the first error you get from the shell script, and figuring out why it's happening. I bet it's something simple, like "file not found". One good way to diagnose stuff like this is to run the shell script as "sh -x," so you know what command it's trying to execute when the command fails.

About using the platform definition taken from a player... That's a last-ditch fallback that was documented before the real stubs were available (relatively freely) from the BDA. It can work for compiling, but there are two problems, one legal, and one technical. The legal problem is that there's a good chance you're violating the agreement you probably clicked on when you got the player. The technical problem is that the player probably has a superset of the BD-J API. If you compile against a platform definition that's a superset, you run the risk that you'll use a method that isn't guaranteed to be present on all players, and your xlet will fail.

Given all this, I very much recommend getting the BDA's stub files.

Cheers,

Bill

0911314
Offline
Joined: 2010-07-11

ah excellent. billf you were in fact one of the original people i tried to contact when i was having these problems weeks ago but my emails did not get through to you or Chihiro Saito (hence the question if anyone's email address at Sun actually work)
so anyway, i guess i will send this here application to the BDA folk and see if this project can pass 'Go'.
but what about my other questions on why I have different options on my SDK to what is on the Java Sun example screenshot?

billf
Offline
Joined: 2004-02-13

Well, Chihiro and I haven't been with Sun for about a year now, so that explains the e-mail bounce! I'm at Warner Bros. these days, in Beautiful Downtown Burbank (to quote the TV show Laugh In).

About the SDK, I must confess that I don't really know the details of configuring any particular IDE. I don't use IDEs very much. I still use vi a lot of the time. I find that IDEs mostly only help when I'm working with code that I don't know very well. In that case, being able to click on a class and go to the source can be helpful. OTOH, find and grep are really great for browsing code, too! On occasion, I'll launch the ant build script from the IDE so I can click on the compiler error messages, and debuggers can be handy sometimes, too.

The rest of the time, all the auto-complete goop and complex mouse gestures and zillions of screens pretty much just get in my way, and the things have about a million billion options that need to be configured just so every time I land on a new computer. Plus, most IDEs seem to come out of the Windows culture where people think the tab character is supposed to equal one indent level, which is just plain wrong :-)

Anyhoo, what I really do most of the time is use ant build scripts, vi, and fire up the IDE for browsing code I'm less familiar with, and on rare occasion for doing builds or running a debugger. For doing the builds, though, I always just use the IDE as a way to launch ant, because it's so incredibly valuable to have a scriptable, command-line driven, automated build process for anything beyond casual use.

Plus, one nice thing about command line-driven tools is that when something goes wrong, you can copy-paste the error into a forum, and people can unambiguously know what you're talking about :-)

Cheers,

Bill

dekz
Offline
Joined: 2010-07-04

Hi mate, I am in now way an expert in working with BD-J. Are you using windows? That example is show using the SDK, not the Netbeans 6.9 (although you can get it working quite easily with Netbeans). You build against the stubs to make sure you have the right calls in the environment. It should work in netbeans if you use the Stubs for BD-J platform. I think that is how I had it when I was using netbeans the other day.

Open up the SDK and see if you get the option of External BD-J.

You have to add the stubs to the class path if I recall correctly.

Good Luck, there isn't much support for this environment unfortunately.

0911314
Offline
Joined: 2010-07-11

Hi Dekz,
thanks for your reply...
Yes, i am using Windows (XP) and the Java ME 3.0 SDK. i first tried using NB with the BD-J project plugin and that didn't work. so i downloaded the Java ME 3.0 SDK and walked thru the instructions as per the link i posted but still didn't have any success.
I don't have the External BD-J option, nor do i have that "Path to BD-J stubs" bit (as per Figure 1), i only have the option to point to the BD player.
That's why i'm wondering if those instructions were for an older version of the software or have i missed something somewhere...
I'm trying to build the Javadoc API and hit a snag there too. instruction #2: "Unpack all of the above archives into this directory. Make sure that all stub source files are in the src directory."
WHICH src directory??? i have a directory structure c:\bdj-docs and then the 6 folders created from the zip files for each API component, no src directory.

thanks for your help.

dekz
Offline
Joined: 2010-07-04

Oh I sort of misunderstood your original post,

What's your email? Within each of the zip files, eventually there are .java classes for the stubs, so I assume thats the src directory it's talking about. Are you following the build script? You should have all those files in a subdirectory called originals, then you should just be able to run the script and it will build the api docs.

If you're using the shell build script it will unzip everything and build everything as long as it can find it in the \originals folder. If you give me your email I can help you a bit more (don't frequently check these forums).

0911314
Offline
Joined: 2010-07-11

(sigh) i must be misunderstanding the instructions...
i think what's thrown me off is the fact that i haven't applied for the stubs from BDA. and i didn't apply for the stubs because i thought it wasn't a necessity since i can "Use the bdj.jar file that included with your PC Blu-ray Disc Player software installation."

thanks again... we'll get there eventually...
0911314@rgu.ac.uk

dekz
Offline
Joined: 2010-07-04

Hi again,

I just checked my windows pc here and it most certainly lets me go File > New Project > CDC Application and then it lets me choose Stubs for BD-J platform to build against. So maybe it has changed since the original documentation, can you confirm that building it this way still works?

You can get the bdj.jar from a player such as ArcSoft total media, but they are prebuilt .class files. You won't be able to generate the javadoc for org.bluray.* but you still can for all the other stubs, javax.*, org.davic.*, etc.

If you want the api docs for org.bluray, it is my understanding you need to apply for the stubs from BDA and build the javadoc from those. The .class files included with a player won't cut it.

0911314
Offline
Joined: 2010-07-11

ok, ok, ok... woah. confusion upon confusion.
i'm getting nowhere when i try to run the build.sh file. i am only ending up with 2 directories: interactive and enhanced. these then only have html directories in them which are empty.
i have followed the instructions as per the build.sh file (i.e. create "originals" directory and put all the zip files in there) but i'm just getting a tonne of errors when i execute (no such file or directory, command not found etc.).
i dunno... it's driving me up the proverbial wall.. in fact, i've run out of wall.
can you drop me an email please? mailto:0911314@rgu.ac.uk
thanks

dekz
Offline
Joined: 2010-07-04

I'll do both.

If you're getting no such file directory and command not found, then you're probably missing programs which can be ran from the command line such as find, unzip etc. I ran this on OSX so I had no problems with the shell script. You might need to have these programs and use mingw/cgywin?