Compile the .java to .class with your jdk first. By doing: 1 In eclipse , create a new project , with the type Dynamic Web. 2 Copy all the codes to project. 3 Run it , and visit the web's main page by http://localhost:yourport/yourmodule/html/desktop.html
Though it contain .class file , but the WebCotent may not be able to run on your tomcat. Because the jvm may not the same.