Thus, you want to invoke a servlet class without using an servlet container like Tomcat?
You can't do that. Period.
If you elaborate in more detail why you need to do this (I really can't imagine of a legitimate reason by the way), we may give more suggestions how to solve/workaround the particular issue.
Update: since you tagged homework
, is the reason maybe that you "accidently" created a JSP page and a Java class while your school doesn't have Tomcat running as sorta demo server, but just Apache+PHP or so instead? If so, then you'll really need to convert/translate to the suitable language. Don't waste time figuring ways to use JSP/Java without a Java Servlet Container at any way, there simply isn't a way. At least, not a "normal" way.