right click on project go to properties->java built in path->libraries->Add library and add your jar file there and then it's working
if you want to use youtube video in your application your device must have to contain an application of youtube otherwise it will not work