I'm trying to follow an introductory tutorial on java servlets and tomcat setup. I have already set up tomCat and hosted an html file. now I'm trying to connevt my Java file which is located here: C:\myWebProject\tomcat\webapps\hello\WEB-INF\classes
the tutorial tells me to do the following:
// Assume that Tomcat is installed in c:\myWebProject\tomcat
// Change directory to the Java source directory c: cd \myWebProject\tomcat\webapps\hello\WEB-INF\classes
// Compile javac -cp .;c:\myWebProject\tomcat\lib\servlet-api.jar HelloServlet.java
but the compile command line does not work.. it tells me that javac is not a recognized command. I've tried replacing it with just java, but then I'm told "error could not find or load main class"
Sorry if the very noob question but I could not find anything helpful after googleing either