I've been trying to get Tomcat to work so that I can compile servelts. When I try to compile them, it says "javax.servlet does not exist".
I don't really know what I'm doing so I need some help!
If I remember correctly, that command will compile the class?
And then what would I do to test the class?
I tried yesterday to get Tomcat up and running using the Terminal, but when I seached "http://localhost:8080/" (after doing the startup.sh) my browser said it could not find the link.
You must copy the class file(s) that are created by the compiler to the examples directory of TOMCAT. Then you must add references to your class file inside the web.xml file that is in your examples directory of TOMCAT.
If you cant start tomcat, then it might be a problem with the classpath. EITHER CHANGE DIRECTORY TO YOUR TOMCAT DIRECTORY in the terminal and then start the startup.sh file or set a environment variable referencing the home directory of tomcat.
Also it is compulsory that you must have an environment variable referencing the JAVA Home directory.