TiVo Community Forum banner
21 - 40 of 76 Posts

·
Registered
Joined
·
100 Posts
OK, I'm trying to make my own Bananas app using BananasSampleScreen & TextScreen as templates. The problem is I put these both in com.judremy.hme similar to the example by TivoPony and try to get them to run, but the error I keep getting is:

error: no constructor: com.judremy.hme.ScreenBack.<init>()
error: make sure the class is public and has a public default constructor

ScreenBack is similar to BananasSampleScreen
HelloWorld is similar to BText

Any help is appreciated.
 

·
I can't explain
Joined
·
25,527 Posts
martinp13 said:
Brittney Spears* will be at TC-Con 2005 in Las Vegas! Check it out!

* Delicious asparagus appetizer available at the Montecito Hotel & Casino .
I am holding out for the Avril LaGreenBeans ;)
 

·
I can't explain
Joined
·
25,527 Posts
jeffrey_ropp said:
TivoPony,

First, thanks for a nice writeup to get us java newbies moving. I've played around with a similar writeup that allowed me to write HelloWorld using another IDE, NetBeans. Would you say this environments are similar or does eclipse offer something uniquely well suited to HME dev?

Many thanks,
Jeff
nothing uniquely suited to HME but eclipse is emerging as the standard platform upon which most other good IDES for Java are built. NetBeans may be from the source of Java but eclipse is much more universal and eclipse 3 is just the way to go.
 

·
Registered
Joined
·
245 Posts
ZeoTiVo said:
nothing uniquely suited to HME but eclipse is emerging as the standard platform upon which most other good IDES for Java are built. NetBeans may be from the source of Java but eclipse is much more universal and eclipse 3 is just the way to go.
Um, I disagree wholeheartedly with this statement. It is both an oversimplification and factually incorrect.

Eclipse and NetBeans are probably the two most popular "free"/open-source IDE development platforms. Both focus on Java, though they also support (to varying degrees) other languages.

Both can also be used as application development frameworks themselves, not just as IDEs for building external applications. That is, you can build other apps out of the eclipse and netbeans code itself that aren't ide's.

Claiming that "eclipse is much more universal" doesn't make too much sense, because the IDE field is vast, with competing Java IDEs like JBuilder, IntelliJ IDEA, Oracle JDeveloper, etc. It is true that some other IDEs are built on Eclipse, like IBM's WebSphere IDE, but it's also true that others are built on top of NetBeans, like SunOne Application Studio. But eclipse as"the standard platform upon which most other good IDES for Java are built", I don't think so.

In the open source community, eclipse definitely has more momentum right now for lots of people, partially because for a few versions eclipse was a little bit faster-seeming, and because plugins are a little bit easier to develop for eclipse. NetBeans is far from dead, and is overall still a better IDE for doing web development (like with JSPs) out of the box.

Right now, I primarily use eclipse both at work and at home, but I recognize that there's no one IDE that's perfect for everyone. Nor should there be. Healthy competition on features and price move everyone forward.

"Eclipse 3 is just the way to go" isn't very informative.
 

·
Registered
Joined
·
2,194 Posts
Discussion Starter · #26 ·
I knew there was a reason I didn't want to get into a NetBeans vs. Eclipse debate! :)

Anyone developing an HME app on any IDE has my support. I'm using Eclipse because...that's what I started with. Pick one and run with it! Your customers will never know which you chose. ;)

Pony
 

·
Unpaid Tivo Salesman
Joined
·
231 Posts
TiVoPony said:
HME is coming to the DVD platforms, we started with the standalones. Remember, for now it's really a developers-only kind of feature, it's not intended yet for the average consumer. Later this year you'll see it more front and center, and on more boxes.
Well, I'll ask it (even though I can guess the answer) What are the chances of seeing this on DirecTivo?
 

·
I can't explain
Joined
·
25,527 Posts
TiVoPony said:
I knew there was a reason I didn't want to get into a NetBeans vs. Eclipse debate! :)

Anyone developing an HME app on any IDE has my support. I'm using Eclipse because...that's what I started with. Pick one and run with it! Your customers will never know which you chose. ;)

Pony
I agree with this TiVoPony - my advice was more to people starting out in Java then those that have a tool set they use already. The power of Java is its versatility to be used in many different ways and not be constricted to only one supported approach. That is the very power of HME itself. I gave my simplified view and am done.

PS I had to laugh though when at the end of the post dropd siad he was using eclipse both at work and at home :rolleyes:
 

·
Registered
Joined
·
245 Posts
ZeoTiVo said:
PS I had to laugh though when at the end of the post dropd siad he was using eclipse both at work and at home :rolleyes:
I'm not sure why you had to laugh at this. My point was simply that it's not productive for you to criticize the guy who was asking if it was ok to work in NetBeans, or to discourage folks from finding the toolset that works best *for them*. There is NO HME advantage to using eclipse. And eclipse is far from universal.

And with that, the horse is dead and buried.
 

·
Registered
Joined
·
196 Posts
I've never done any Java programming so please have mercy on me.
I followed Pony's instructions ( or so it would seem) but when I click on the "Run" button I get:
error: class not found: com.tivo.hme.HelloWorld
error: check the classpath and access permissions

Can anyone help me out?
 

·
Robble robble!
Joined
·
16 Posts
I had the same problem:

Make sure that you changed the "package ..." line at the top of the file to match what you typed in this step:

Create a new package within that project. You can name it whatever you want...our guys use com.tivo.hme, you can use anything, just try to make it unique to you. All lower case. This creates a hierarchy of folders within your eclipse 'workspace' folder, matching whatever you type (eg. empty 'hme' folder inside a 'tivo' folder inside a 'com' folder.
I suspect that will solve your problem.

If not, make sure that you've created a run configuration, as in the following step:

Now, select 'Run' from the menu bar, and scroll down the drop down window and select Run... Don't choose Run As!

A Run window will open. Click on Java Application (to the left), and then press the 'new' button. It'll create a new file labeled 'New_configuration'. Highlight it. This is the runtime configuration for this particular program. Change the Name: to something that makes sense (like HelloWorld). The Project name should be auto-filled. Below that is Main Class. Make sure that 'Include external jars when searching for main class' is checked on. Then type the word Factory into the dialog above that checkbox. Click 'Search', and you'll see a dialog of classes. Scroll down to the one labeled Factory and select it. The Main class dialog will then be auto-filled with the right path for the class (something like com.tivo.hme.Factory). All of that is on the 'Main' tab.
Hope that helped!!
 

·
Registered
Joined
·
1 Posts
I am trying to modify the Hello World sample included in the sample files. I want the program to say "Hello, Mark!" Instead. A simple change.

I modified the file and used the following compile line on My OSX Machine:

javac -classpath /hme_sdk_ea1/hme.jar -sourcepath /hme_sdk_ea1/samples/src/com/tivo/hme/samples/ HelloWorld.java


This created a HelloWorld.class file.

However I next ran the Simulator and the file was not modified?

java -cp samples/samples.jar com.tivo.hme.sdk.Factory com.tivo.hme.samples.hello.HelloWorld

I think the samples.jar file was never updated
 

·
The Very Last One
Joined
·
232 Posts
A quick note -- if you get an exception when you try to run this in the Simulator, make sure you have an active network interface on your machine. I was originally trying this on my laptop and getting an exception. Once I switched on my wireless access, the Simulator started working properly.

BTW, thanks, TiVoPony, for the helpful startup instructions -- this kind of thing is great.
 

·
The Very Last One
Joined
·
232 Posts
For those of you more visually oriented, I have recorded a screen video of this excellent introduction from TiVoPony (Flash required). Since I can't post links, you can find this demo on my website (click on my name to the left there to visit my homepage); find the link to 'TiVo App SDK - Cool!' in the left-hand nav, and it's linked off that page under 'Writing Your First Application.'

Note the little green progress bar and pause/play control at the bottom, if you need to pause it in the middle.
 

·
Weeeeeeeeeeee
Joined
·
570 Posts
F8ster said:
For those of you more visually oriented, I have recorded a screen video of this excellent introduction from TiVoPony (Flash required). Since I can't post links, you can find this demo on my website (click on my name to the left there to visit my homepage); find the link to 'TiVo App SDK - Cool!' in the left-hand nav, and it's linked off that page under 'Writing Your First Application.'

Note the little green progress bar and pause/play control at the bottom, if you need to pause it in the middle.
http://bitrazor.com/content/tivo/hme/tivo_hme_eclipse_demo1.html
 

·
Registered
Joined
·
2,194 Posts
Discussion Starter · #38 ·
F8ster said:
For those of you more visually oriented, I have recorded a screen video of this excellent introduction from TiVoPony (Flash required). Since I can't post links, you can find this demo on my website (click on my name to the left there to visit my homepage); find the link to 'TiVo App SDK - Cool!' in the left-hand nav, and it's linked off that page under 'Writing Your First Application.'

Note the little green progress bar and pause/play control at the bottom, if you need to pause it in the middle.
Nicely done! :)

We've added it to the 'news' section of the sourceforge site:
TiVo HME SourceForge Site

Thanks for doing that. Very cool.

Pony
 

·
Registered
Joined
·
4 Posts
Great tutorial. Thanks.

Now, I'd like to try using the HME SDK via IKVM on Mono. Have any Mono/C# fanatics tried this yet? My main reason is so that I can write my test application in C#, and use the Java HME SDK via import through IKVM. Since the HME simply runs on the PC, and not on the Tivo, I'm hoping this setup will work nicely.

I would have provided HTML links to IKVM and Mono, but I'm prohibited, since this is my first post on this forum. Very annoying...

Anyway, any IKVM,Mono,C# folk out there?
 

·
The Very Last One
Joined
·
232 Posts
Well, this thread inspired me to begin writing my own app -- a "Traffic Cam Viewer" application. As I have progressed, I have documented everything in the form of a fairly extensive tutorial, one of those "learn it in an hour a day" kinds of tutorials.

In addition to the HME SDK. I also show how to get started with the Bananas UI toolkit. There's also a number of more intermediate Eclipse tips (using the debugger, etc.)

Since I can't yet post links, you can find this tutorial by clicking my username 'F8ster' over there on the left, selecting 'Visit F8ster's Homepage!', then choosing 'TiVo App Tutorial' from the left-hand nav bar on my homepage.

Comments and suggestions welcome. Enjoy -- Dave
 
21 - 40 of 76 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top