I am writing a desktop application and i want it to connect to the internet and pull videos from youtube. I know that i have to use a servlet to do this but the problem i am having is that i don't know how to create the servlet class in my exiting java se project. I am using netbeans (I am a novice so please help).