1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting Started with Eclipse

Discussion in 'Developers Corner' started by TiVoPony, Feb 15, 2005.

  1. DVDerek

    DVDerek <WittySaying />

    6,450
    0
    Sep 30, 2002
    Boston, MA
    Hello World Running! W00t! Netflix Queue, Here I come...
     
  2. Judremy

    Judremy New Member

    98
    0
    Jun 28, 2004
    Farmington...
    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.
     
  3. ZeoTiVo

    ZeoTiVo I can't explain

    25,527
    0
    Jan 2, 2004
    I am holding out for the Avril LaGreenBeans ;)
     
  4. ZeoTiVo

    ZeoTiVo I can't explain

    25,527
    0
    Jan 2, 2004
    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.
     
  5. dropd

    dropd New Member

    245
    0
    Dec 22, 2003
    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.
     
  6. TiVoPony

    TiVoPony New Member

    2,194
    0
    May 11, 2002
    Alviso,...
    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
     
  7. hoopsbwc34

    hoopsbwc34 Unpaid Tivo Salesman

    218
    0
    Jan 28, 2003
    Well, I'll ask it (even though I can guess the answer) What are the chances of seeing this on DirecTivo?
     
  8. ZeoTiVo

    ZeoTiVo I can't explain

    25,527
    0
    Jan 2, 2004
    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:
     
  9. dropd

    dropd New Member

    245
    0
    Dec 22, 2003
    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.
     
  10. ScottKuma

    ScottKuma Robble robble!

    16
    0
    Aug 25, 2002
    NE of...
    W00t!! Got my "Hello, World!" Program up & running.

    Now I need to figure out something to write. I'm sure it'll come to me.
     
  11. Robs67

    Robs67 New Member

    196
    0
    Dec 26, 2001
    Templeton, MA
    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?
     
  12. ScottKuma

    ScottKuma Robble robble!

    16
    0
    Aug 25, 2002
    NE of...
    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:

    I suspect that will solve your problem.

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

    Hope that helped!!
     
  13. Robs67

    Robs67 New Member

    196
    0
    Dec 26, 2001
    Templeton, MA
    Thanks ScottKuma. I think I had a hierarchy issue. Eclipse gave a suggestion, which I followed and now it works.

    Thanks again.
     
  14. zomper514

    zomper514 New Member

    1
    0
    Apr 6, 2005
    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
     
  15. F8ster

    F8ster The Very Last One

    232
    0
    May 26, 2002
    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.
     
  16. F8ster

    F8ster The Very Last One

    232
    0
    May 26, 2002
    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.
     
  17. SafariKC

    SafariKC My TiVo reboots alot

    565
    0
    Mar 6, 2000
    Marlborough,...


    http://bitrazor.com/content/tivo/hme/tivo_hme_eclipse_demo1.html
     
  18. TiVoPony

    TiVoPony New Member

    2,194
    0
    May 11, 2002
    Alviso,...
    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
     
  19. mgan42

    mgan42 New Member

    4
    0
    May 13, 2005
    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?
     
  20. F8ster

    F8ster The Very Last One

    232
    0
    May 26, 2002
    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
     

Share This Page